Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save port in settings #31

Open
MarioFritsche opened this issue Dec 6, 2022 · 6 comments
Open

Save port in settings #31

MarioFritsche opened this issue Dec 6, 2022 · 6 comments

Comments

@MarioFritsche
Copy link

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
Copy link
Owner

yandeu commented Dec 6, 2022

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

@MarioFritsche
Copy link
Author

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

@yandeu
Copy link
Owner

yandeu commented Dec 6, 2022

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

@MarioFritsche
Copy link
Author

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
Copy link
Owner

yandeu commented Dec 7, 2022

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
Copy link
Author

Without success... :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants