Server is unaccessible even though it shows running in logs
amexn-me
HOBBYOP

2 years ago

I'm trying to spin up a nodejs express backend which use Sequelize. The inital migrations to psql is happening smoothly and the connection is ok. Also, log says the server is listening on port 8000. But when I tied to access the public domain generated for the project, the page for "Application failed to respond" appears and its a Server Error. But logs are still confident that its up and running without any errors.

4 Replies


amexn-me
HOBBYOP

2 years ago

Yeah, I have referred that before and opened it for 0.0.0.0. And still am getting that same error.


2 years ago

Yeah, I have referred that before and opened it for 0.0.0.0. And still am getting that same error.

Your web server should be bound to 0.0.0.0 and listening on the port that we provide (via the PORT environment variable).

Also, log says the server is listening on port 8000

It needs to listen to the port we provide, or you can set your own port by using a service variable. Refer to the docs again for configuring the port. If you're using Express, read the section on Node/Express.


amexn-me
HOBBYOP

2 years ago

Thank you


Loading...