Deployment Crash
brycelanders
TRIALOP

a year ago

Everytime i try to deply my database it crashes: connection refused.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

7 Replies

a year ago

Hello,

You ran railway up while linked to the database, instead you should create a new empty service with the + Create button at the top right of your project canvas and then run railway link to link to the new service, then you can run railway up

You will also need to add any needed environment variables to the newly created empty service.

Best,
Brody


brody

Hello,You ran railway up while linked to the database, instead you should create a new empty service with the + Create button at the top right of your project canvas and then run railway link to link to the new service, then you can run railway upYou will also need to add any needed environment variables to the newly created empty service.Best,Brody

brycelanders
TRIALOP

a year ago

Im getting confused with the environment variables, would I add the PG database variables to the new empty service or would I add my local DB variables


a year ago

You would add the variables of the Railway database service as you are already doing!


brody

Hello,You ran railway up while linked to the database, instead you should create a new empty service with the + Create button at the top right of your project canvas and then run railway link to link to the new service, then you can run railway upYou will also need to add any needed environment variables to the newly created empty service.Best,Brody

brycelanders
TRIALOP

a year ago

Is there anything else im missing, I keep getting the same error and cant for the life of me figure it out


a year ago

You need to use the variables you added in your code.


brycelanders
TRIALOP

a year ago

THANK YOU!!!


a year ago

Happy to help!


Loading...