Skip to content

Commit 8dc2c3f

Browse files
authored
🐛 Fix issue with DIRECT_DATABASE_URL being required (#1484)
1 parent 01eb62e commit 8dc2c3f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.env.development

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ NEXTAUTH_URL=http://localhost:3000
1111
# A connection string to your Postgres database
1212
DATABASE_URL="postgres://postgres:postgres@localhost:5450/rallly"
1313

14+
# A connection string to your Postgres database for direct access (used for migrations)
15+
DIRECT_DATABASE_URL="postgres://postgres:postgres@localhost:5450/rallly"
16+
1417
# Required to be able to send emails
1518
SUPPORT_EMAIL=[email protected]
1619

scripts/docker-start.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
22
set -e
3+
4+
export DIRECT_DATABASE_URL=$DATABASE_URL
5+
export NEXTAUTH_URL=$NEXT_PUBLIC_BASE_URL
6+
37
prisma migrate deploy --schema=./prisma/schema.prisma
4-
NEXTAUTH_URL=$NEXT_PUBLIC_BASE_URL node apps/web/server.js
8+
node apps/web/server.js

0 commit comments

Comments
 (0)