Server Error 503 after successful docker build

Hello! I am building my app with a Dockerfile and the build on railway succeeds with no errors however I am getting a server error 503 when visiting the deployment url.
Project id: e1367860-36b1-4501-b6e1-478f41603a5c Deployment id: 030249c Deploy logs:
[00:56:41 WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
[00:56:42 WRN] No XML encryptor configured. Key { key } may be persisted to storage in unencrypted form.
[00:56:42 INF] Now listening on: http://0.0.0.0:5000
[00:56:42 INF] Application started. Press Ctrl+C to shut down.
[00:56:42 INF] Hosting environment: Production
[00:56:42 INF] Content root path: /app/
[00:56:41 WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
[00:56:42 WRN] No XML encryptor configured. Key { key } may be persisted to storage in unencrypted form.
[00:56:42 INF] Now listening on: http://0.0.0.0:5000
[00:56:42 INF] Application started. Press Ctrl+C to shut down.
[00:56:42 INF] Hosting environment: Production
[00:56:42 INF] Content root path: /app/
Here is the url: https://contactvault-development.up.railway.app/
5 Replies
Percy
Percy17mo ago
Project ID: e1367860-36b1-4501-b6e1-478f41603a5c
Brody
Brody17mo ago
you're listening on 5000, your app needs to listen on the environment variable PORT
caltman24
caltman2417mo ago
ohhhh thats right! I completely forgot I had to do that. Thanks so much!
Brody
Brody17mo ago
no problem