mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 17:56:37 +02:00
🐛 Set DIRECT_DATABASE_URL
This commit is contained in:
parent
01eb62e345
commit
310b16480e
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
Reference in a new issue