🐛 Fix issue with DIRECT_DATABASE_URL being required (#1484)

This commit is contained in:
Luke Vella 2025-01-06 18:05:49 +00:00 committed by GitHub
parent 01eb62e345
commit 8dc2c3fa50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 # A connection string to your Postgres database
DATABASE_URL="postgres://postgres:postgres@localhost:5450/rallly" 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 # Required to be able to send emails
SUPPORT_EMAIL=support@rallly.co SUPPORT_EMAIL=support@rallly.co

View file

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