Skip to content
Application did not respond
niyazmollah1-create
OP

6 months ago

Whenever I deploy my machine and then restart, a error 502 always comes even though I haven't changed my port or anything

Solved$10 Bounty

Pinned Solution

You’d need to use a custom Dockerfile to do that.

7 Replies

Status changed to Open Railway • 7 months ago


Make sure the port your application is listening to is the same port URL is mapped to.


0x5b62656e5d

Make sure the port your application is listening to is the same port URL is mapped to.

niyazmollah1-create
OP

6 months ago

The thing is, it runs/works just fine at first but when I restart, it doesn't and my app is listening to the right port


Can you elaborate on “at first” and “restart”?

At this point I’d try making your app listen to an arbitrary port (eg, 3000) and change the port on your URL to match that as well.


0x5b62656e5d

Can you elaborate on “at first” and “restart”? At this point I’d try making your app listen to an arbitrary port (eg, 3000) and change the port on your URL to match that as well.

niyazmollah1-create
OP

6 months ago

I mean I deployed the codes from my github repo and it worked fine, I didn't even changed anything I just restarted it and it stopped working


Try what I suggested above.

Also, make sure there aren’t any errors in the deployment logs.


0x5b62656e5d

Try what I suggested above. Also, make sure there aren’t any errors in the deployment logs.

niyazmollah1-create
OP

6 months ago

I'll somehow fix it, your solution is crashing the server but can you tell, how can I install java on nodejs server?


You’d need to use a custom Dockerfile to do that.


Status changed to Solved 0x5b62656e5d • 18 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...