Help: DB Migration Failing for Project
frasimah
PROOP

2 months ago

Hi Team,

I need to run a database migration for the "Twenty" service in my project stunning-ambition.

When I put npx prisma migrate deploy in the "Start Command" field, it fails with the error: Error: Could not find Prisma Schema.

This suggests it's running from the wrong working directory.

What is the correct, full command I should use in the "Start Command" to run this migration successfully just once? I tried running ls -la / via the "Start Command" to find the correct application directory, but it was failed

$10 Bounty

2 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody about 2 months ago


medim
MODERATOR

2 months ago

Hello! First of all, is there any reason why you are running migrations in the start command instead of a pre-deploy command?


Loading...