10 days 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 • 10 days ago
10 days 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.
10 days 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
10 days 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.
10 days 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
10 days 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.
10 days ago
I'll somehow fix it, your solution is crashing the server but can you tell, how can I install java on nodejs server?