Pre deploy

elixirdev13
HOBBYOP

a month ago

how can i migrate my prisma to outside supabase database it always faill to deploy

$10 Bounty

5 Replies

team
HOBBY

a month ago

i can help,


elixirdev13
HOBBYOP

a month ago

here error

bash -lc 'DATABASE_URL="$PRISMA_MIGRATE_DATABASE_URL" npx prisma migrate deploy --schema apps/api/prisma/schema.prisma'


elixirdev13
HOBBYOP

25 days ago

pls help


elixirdev13

pls help

25 days ago

Hey, have you tried to add a migrate:deploy script to your package.json and call it from there instead?

For example add it to your scripts

{
  "scripts": {
    "migrate:deploy": "DATABASE_URL=\"$PRISMA_MIGRATE_DATABASE_URL\" prisma migrate deploy --schema apps/api/prisma/schema.prisma"
  }
}

and change the predeploy command to npm run migrate:deploy.


18 days ago

Hey, have you managed to try the suggestion above and solve your issue?


Loading...
Pre deploy - Railway Help Station