Post Deployment Action
costgranda
TRIALOP
2 years ago
Hello, I'm trying to deploy my backend that it's using Prisma, but I need to apply the migrations on the Railway Postgres database and I can't find a way to execute the script, because during the building phase it won't work if it's not able to find the database in the network or local host.
This it's handled in other providers like Fly.io with a post_script where I can add a .sh file. Do you know if this is possible in Railway?
Thanks!
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
costgranda
TRIALOP
2 years ago
Fixed: I enabled the beta flag to access the network during builds and it works now.