DEV Community

Discussion on: Django + PostgreSQL Deployment on Railway App

Collapse
 
osahenru profile image
Osahenru

Beautiful piece, thank you so much but I'm getting this error message "Application Error
is your app correctly listening on $PORT?"

I have done every thing I can from creating an environment variables in my railway project to deleting my project severally but still after a successful deployment my project still crashes.

Collapse
 
mr_destructive profile image
Meet Rajesh Gor

Have you entered the port number correctly from the postgres service on railway. I think that is probably the issue.

Collapse
 
osahenru profile image
Osahenru

Alright I'll try that out, although I didn't use postgresql for this project I used Django's default sql lite, I'll try this out and get back to you. thank you so much

Thread Thread
 
osahenru profile image
Osahenru

Fixed the issue. thanks for your assist

Thread Thread
 
surya7765 profile image
surya7765

Hey, May I know how you have fixed the issue?

Thread Thread
 
sgafgfjsa profile image
uwuwuw

@osahenru May I know how you fixed the issue?

Collapse
 
lbwaks profile image
Lucas Obwaku

Add logging to your app then git and deploy. On your dashboard under deployment there is a view logs button.Then click build logs .This will tell you the exact problem.

Collapse
 
osahenru profile image
Osahenru

Thank you I'll try this out too