-
Notifications
You must be signed in to change notification settings - Fork 754
Closed
Description
Hey there!
linux@linux-desktop:~/Templates/browsersync-project$ ls
brow.html css
linux@linux-desktop:~/Templates/browsersync-project$ browser-sync start --server --files="css/*.css"
[BS] Access URLs:
------------------------------------
Local: http://localhost:3000
External: http://192.168.1.2:3000
------------------------------------
UI: http://localhost:3001
UI External: http://192.168.1.2:3001
------------------------------------
[BS] Serving files from: ./
[BS] Watching files...
In browser (Firefox http://localhost:3000/) I see only : Cannot GET/
any suggestions?
Activity
dagolinuxoid commentedon Jun 30, 2015
Interesting! When I rename bower.html to index.html I had no troubles, but why custom naming html file (in my case bower.html) get Cannot GET )
CydGoblin commentedon Jun 30, 2015
@dagolinuxoid I guess is because it looks for index as a normal server would? try with
startPath
example in gulpfile:shakyShane commentedon Jun 30, 2015
@dagolinuxoid it looks for an
index.html
file in the directory you specify (or the cwd, if you didn't)solutions:
index
option like sobrowser-sync start --server --index bower.html --files="css/*.css"
dagolinuxoid commentedon Jun 30, 2015
Got it, thanks a lot!
wikilike7 commentedon May 24, 2016
Thanks, i solve it follow your answer
alexfrize commentedon Oct 4, 2016
Thanks!
VladislavUrbanovich commentedon Nov 27, 2017
Thanks guys