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

Listening to a specific IP #3525

Closed
JohnDiorroer opened this issue Jun 25, 2019 · 1 comment
Closed

Listening to a specific IP #3525

JohnDiorroer opened this issue Jun 25, 2019 · 1 comment

Comments

@JohnDiorroer
Copy link

Describe the bug
While trying to install strapi on a production server I encountered a problem. The HTTP server does not listen on the IP configured in my files: config/environments/<>/server.json.

To make it work I had to replace:

this.server.listen (this.config.port, async err => {

by

this.server.listen (this.config.port, this.config.host, async err => {

in the Strapi.js file.

Is there another way for the application to launch by listening to a specific IP?

For your work, thank you.

@lauriejim
Copy link
Contributor

Hello!
I suppose you host your server in a AWS or Heroku or Digital Ocean.
You have to keep your localhost for the host value.

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

No branches or pull requests

2 participants