I
I
idin2016-08-03 19:54:44
PHP
idin, 2016-08-03 19:54:44

Question about browser-sync, how to connect it?

I'm trying to figure out with browser-sync, I installed everything, I'm trying to start it this way

browser-sync start --proxy 
lol/ --files "*.css, *.html, *.php, *.js
"

where lol is the site folder, and in general I start it, the localhost:3010 site automatically opens, as if everything works, it is edited, but it doesn’t reboot when there is nothing to change, maybe I’m writing something wrong? help the teapot))) please

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vorotnev, 2016-08-07
@Izy

BrowserSync is either a simple server (without PHP) or a proxy. The proxy just forwards requests + intercepts and returns a response. Therefore, for PHP to work, BrowserSync must proxy requests to a full-fledged web server (Apache / Nginx + PHP + MySQL), respectively, you must specify not a folder with files, but a URL (local domain).

A
Alexey Skobkin, 2016-08-03
@skobkin

Isn't there a virtual host (read "domain") and not a directory that should be specified in the proxy parameter ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question