Deployments crashing
cholasimmons
TRIALOP

2 years ago

Hello, I've managed to narrow down my issue to being a database migration problem, I'm running a bun project (ElysiaJS) with Prisma ORM and ideally the schema needs to be migrated to the database, for this i have tried a prepublish and a prestart script from package.json which don't seem to be doing much, I have also tried a railway deploy script which is making progress but for some reason is saying cannot connect to the database - despite pgAdmin connecting and displaying a working database using the same credentials.
Is there something i am missing? or maybe a tutorial to hold my hand?

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

2 years ago

I've managed to narrow down my issue to being a database migration problem

I feel like I'm missing some context here?

Either way, you would likely want to run the migration script locally through railway run -

https://docs.railway.app/reference/cli-api#run


Loading...