You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that the existing browser-sync setup does not work because it assumes that the browser-sync server is running on the same domain/hostname that wordpress is running on (http://my-new-cool-site:3000.dev), but that is incorrect. Instead we need to point browser-sync to http://localhost:3000
I accomplished this with two changes. Replace HOST with localhost in gulp/core/templates/browser-sync-snippet.js and add socket: { domain: 'localhost:3000' } to gulp/config/browser-sync.js. Ideally this wouldn't require any changes to the "core" template.
The text was updated successfully, but these errors were encountered:
I use Varying Vagrant Vagrants (https://github.com/Varying-Vagrant-Vagrants/VVV) to host my wordpress sites in Vagrant during development. Thus, my wordpress development is done with a domain like http://my-new-cool-site.dev
This means that the existing browser-sync setup does not work because it assumes that the browser-sync server is running on the same domain/hostname that wordpress is running on (http://my-new-cool-site:3000.dev), but that is incorrect. Instead we need to point browser-sync to http://localhost:3000
I accomplished this with two changes. Replace
HOST
withlocalhost
ingulp/core/templates/browser-sync-snippet.js
and addsocket: { domain: 'localhost:3000' }
togulp/config/browser-sync.js
. Ideally this wouldn't require any changes to the "core" template.The text was updated successfully, but these errors were encountered: