R
Railway2y ago
Dey

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
Percy2y ago
Project ID: e1367860-36b1-4501-b6e1-478f41603a5c
Brody
Brody2y ago
you're listening on 5000, your app needs to listen on the environment variable PORT
Dey
DeyOP2y ago
ohhhh thats right! I completely forgot I had to do that. Thanks so much!
Brody
Brody2y ago
no problem
Want results from more Discord servers?
Add your server