🐛 Set DIRECT_DATABASE_URL

This commit is contained in:
Luke Vella 2025-01-06 18:00:39 +00:00
parent 01eb62e345
commit 310b16480e
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
2 changed files with 8 additions and 1 deletions

View file

@ -11,6 +11,9 @@ NEXTAUTH_URL=http://localhost:3000
# A connection string to your Postgres database
DATABASE_URL="postgres://postgres:postgres@localhost:5450/rallly"
# A connection string to your Postgres database for direct access (used for migrations)
DIRECT_DATABASE_URL="postgres://postgres:postgres@localhost:5450/rallly"
# Required to be able to send emails
SUPPORT_EMAIL=support@rallly.co

View file

@ -1,4 +1,8 @@
#!/bin/sh
set -e
export DIRECT_DATABASE_URL=$DATABASE_URL
export NEXTAUTH_URL=$NEXT_PUBLIC_BASE_URL
prisma migrate deploy --schema=./prisma/schema.prisma
NEXTAUTH_URL=$NEXT_PUBLIC_BASE_URL node apps/web/server.js
node apps/web/server.js