mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-10 07:26:48 +02:00
🐛 Fix issue with DIRECT_DATABASE_URL being required (#1484)
This commit is contained in:
parent
01eb62e345
commit
8dc2c3fa50
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue