ziishaned / livereload-vscode

LiveReload plugin for VS Code
MIT License
33 stars 7 forks source link

Q: How to configure Live Server with MAMP PRO (Apache) #22

Open petrchutny opened 4 years ago

petrchutny commented 4 years ago

Hello,

thank you for creating such a great extension. I love using it, and would love to use it with my local dev environment for PHP - MAMP PRO. I've tried configuring the "Proxy" option, to make Live Server aware, that my local WordPress site runs on "http://janhajekceramics:8888/" as opposed to the typical localhost address, but Live Server still opens its typical localhost:5500 URL and lists the .PHP files in it, instead of showing the actual MAMP's served content.

My Live Server Proxy settings:

"liveServer.settings.proxy": {
  "enable": true,
  "baseUri": "http://janhajekceramics:8888/",
  "proxyUri": "http://localhost:5500"
}

Thank you for any advice on this.

imroue commented 2 years ago

Any updates on this question? 😊

clicksmartmedia commented 2 years ago

Any update yet?

arifhakimi commented 11 months ago

The actual Server Address should be your MAMP address, and the Live Server Address should be the VSCode address. Refer to the image below:

image

Also make sure to enable Live in the VSCode:

image

Now visit and use only the actual Server Address.