Answer the question
In order to leave comments, you need to log in
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
"
Answer the question
In order to leave comments, you need to log in
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).
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 questionAsk a Question
731 491 924 answers to any question