a month ago
Whenever I deploy my machine and then restart, a error 502 always comes even though I haven't changed my port or anything
7 Replies
Status changed to Open Railway • about 1 month ago
a month 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.
a month 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
a month ago
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.
a month 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
a month ago
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.
a month ago
I'll somehow fix it, your solution is crashing the server but can you tell, how can I install java on nodejs server?