see this:
everything looks sucessful as it shows that the form is listening but render still thinks it is deploying. do I need to modify the code somehow? or is this a render issue? pls help
see this:
everything looks sucessful as it shows that the form is listening but render still thinks it is deploying. do I need to modify the code somehow? or is this a render issue? pls help
Hi there,
Are you sure the port that it says it’s listening on (3000
) is the port the application is actually listening on? Are there any other logs that suggest it might be trying to listen on a second port?
Our docs on host and port configuration are often helpful in these situations: https://render.com/docs/web-services#host-and-port-configuration.
Regards,
Mike
Render Support Engineer, MT (UTC-7)
thanks for the response
const port = 3000;
app.listen(port, () => {
console.log(`Doxrform listening at 0.0.0.0:${port}`);
});
express automatically binds to 0.0.0.0 I think…
edit: made it bind to 0.0.0.0 manually and changed port to check for process.env.port too first.
YAYYY IT WORKS!!! THANKS!! I guess port detection was the problem.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.