a year ago
Hey, I'm trying to use PR enviroments, and my service depends on Postgres container. It seems every time Railway tries to create PR enviroment, first deploy fails.
Once I'm manually restarting deploy for Postgres - it runs successfully.
How could that be tuned?
ⓘ Deployment information is only viewable by project members and Railway employees.
3 Replies
a year ago
If you're using variable references (https://docs.railway.com/guides/variables#reference-variables) and have your dependent service use the Postgres service's variable, we'll wait until the dependencies are deployed before deploying the rest.
Can you share a link to a PR environment deploy that failed because it couldn't connect to your database? I poked around and it seems most of your builds are failing at healthcheck which doesn't appear to be related to the database.
Status changed to Awaiting User Response Railway • about 1 year ago
ray-chen
If you're using variable references (https://docs.railway.com/guides/variables#reference-variables) and have your dependent service use the Postgres service's variable, we'll wait until the dependencies are deployed before deploying the rest.Can you share a link to a PR environment deploy that failed because it couldn't connect to your database? I poked around and it seems most of your builds are failing at healthcheck which doesn't appear to be related to the database.
a year ago
Healthcheck if failing because my service can't connect to database.
Also, actually, I could use another bit of help.
I'm looking for a way to customize build process somehow in order to run database migration and database seeding scripts before service is actually started. How could I do that?
I found pre-deploy command in docs but no example of how to use it.
https://docs.railway.com/guides/pre-deploy-command
Status changed to Awaiting Railway Response Railway • about 1 year ago
a year ago
We have now updated the docs page with an infographic, but feel free to ask any further questions here!
Status changed to Awaiting User Response Railway • about 1 year ago
6 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 6 months ago