Docker builds but fails to start application
Hey ππΎ when I deploy my Dockerfile on Railway it builds ok but it fails on startup. However building & starting the Dockerfile locally it works just fine.
Would anyone know why this could be? For what it's worth I'm using a Bun's docker image..
16 Replies
Project ID:
45499fe6-6ec5-43b9-aca6-872b5076de23
it fails on startupplease provide error messages
It doesn't provide an error message even wrapping it within a try/catch block
The console log isn't true btw
Hitting the endpoint I get a 503 error
you need to listen on the PORT environment variable
Let me try that!
Hey this is still throwing an error. I've even set my own port manually within Railway itself
what did you set PORT to in railway?
8000
still 503? make sure the app is also listing on host 0.0.0.0
I lied. My client wasn't using the secure protocol when connecting to the websocket. Thank you @Brody ππΎ
sounds goods!
But a quick question. I'm not seeing any of the logging within the deploy logs
are you logging unbuffered to stdout / stderr?
I believe so if
console.log
is unbuffered?with nodejs, yes
with bun, no clue