Deployment Crash
brycelanders
TRIALOP

2 years 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

2 years 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 up` You will also need to add any needed environment variables to the newly created empty service. Best, Brody

brycelanders
TRIALOP

2 years 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


2 years 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 up` You will also need to add any needed environment variables to the newly created empty service. Best, Brody

brycelanders
TRIALOP

2 years ago

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


2 years ago

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


brycelanders
TRIALOP

2 years ago

THANK YOU!!!


2 years ago

Happy to help!


Welcome!

Sign in to your Railway account to join the conversation.

Loading...