omgreenfield / sandbox

Repo for learning different technologies
0 stars 0 forks source link

Browser Sync #22

Open omgreenfield opened 9 years ago

omgreenfield commented 9 years ago

Something to test all browsers at 1 time.

omgreenfield commented 9 years ago

Pretty cool. I want to figure out a way that it'll open up several windows for me automatically, but at least got it to the point where doing actions on 1 browser repeats those actions on every browser at the same address.

Did the following:

sudo npm install -g browser-sync to install it globally

sudo apt-get install nodejs-legacy to allow things to use 'node' instead of 'npm' or whatever.

browser-sync start --proxy='mywebsite.com' to start a browser sync server at mywebsite.com. You can then go to localhost:3001, it'll "redirect" to mywebsite.com, and for every device at that localhost:3001, the actions will be synced.