yandeu / five-server-vscode

⚡ VSCode Extension for Five Server.
https://marketplace.visualstudio.com/items?itemName=yandeu.five-server
Other
121 stars 9 forks source link

Save port in settings #31

Open MarioFritsche opened 1 year ago

MarioFritsche commented 1 year ago

Hello, in the settings I created the port 8888: "fiveServer.port": 8888, But this port is not used, instead a new port is always generated when starting the server.

yandeu commented 1 year ago

A new random port is generated if the chosen port is already in use. Is there already something running on port 8888?

MarioFritsche commented 1 year ago

Yes, I have MAMP (https://www.mamp.info/de/mamp-pro) running as a server and there the port 8888 is occupied.

yandeu commented 1 year ago

Ok. So now just change the five server's port to something else than 8888, and it will work.

MarioFritsche commented 1 year ago

Ok, sobald ich aber eine mysql Datenbank laufen habe, wird mir die Seite aber nicht mehr angezeigt, kann sie nur über post 8888 bearbeiten

yandeu commented 1 year ago

You could try to use the five-server proxy. Simply add a config file and use the npm version of five-server:

// fiveserver.config.js
module.exports = {
  port: 5500,
  proxy: { '/': 'http://localhost:8888/' }
}

Then do npx five-server . in your console.

MarioFritsche commented 1 year ago

Without success... :-(