Skip to content

[REC]: Restful Environment Configuration #646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ghost opened this issue Sep 25, 2017 · 0 comments
Open

[REC]: Restful Environment Configuration #646

ghost opened this issue Sep 25, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 25, 2017

@shiffman
With Atom, Sublime Text, etc...

Time-saving synchronised browser reloading when code changes saved.

Note:

I spend for reloading browser 1 sec per change,
How many seconds I'll spend, if I'll do 100 changes?
How many seconds I'll spend, if I'll spend 5 sec to reload a page and will do 100 changes?

Q: How to reload page automatically, every time I've saved changes?
A: BrowserSync! Our precious time is saved from trash! 🥇

https://www.browsersync.io/#install
https://www.browsersync.io/docs/command-line

me@amadeus ~ $ cd /tmp

me@amadeus /tmp $ mkdir test && cd test

me@amadeus /tmp/test $ p5 g -b hello
p5-manager version 0.3.2
create : hello
create : hello/sketch.js
create : hello/index.html
create : hello/libraries
create : hello/libraries/p5.js
create : hello/libraries/p5.sound.js
create : hello/libraries/p5.dom.js

me@amadeus /tmp/test $ cd hello/

me@amadeus /tmp/test/hello $ atom .

me@amadeus /tmp/test/hello $ tree -A
.
├── index.html
├── libraries
│ ├── p5.dom.js
│ ├── p5.js
│ └── p5.sound.js
└── sketch.js

1 directory, 5 files

me@amadeus /tmp/test/hello $ browser-sync start --server -f .
[Browsersync] Access URLs:
----------------------------------
Local: http://localhost:3000
External: http://10.0.0.2:3000
----------------------------------
UI: http://localhost:3001
UI External: http://10.0.0.2:3001
----------------------------------
[Browsersync] Serving files from: ./
[Browsersync] Watching files...
[Browsersync] Reloading Browsers...

@ghost ghost changed the title [REC]: Restful environment configuration [REC]: Restful Environment Configuration Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants