Skip to content

Commit 0316c84

Browse files
committed
fix: prisma uses DIRECT_URL
1 parent 97df71f commit 0316c84

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
.env*

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ FROM base AS build
1010

1111
WORKDIR /build
1212
ARG SQL_GENERATE_URL
13+
RUN test -n "${SQL_GENERATE_URL}"
1314
ENV DATABASE_URL=$SQL_GENERATE_URL
14-
RUN test -n "${DATABASE_URL}"
15+
ENV DIRECT_URL=$SQL_GENERATE_URL
1516
COPY . .
1617
RUN --mount=type=cache,target=~/.bun/install bun install --frozen-lockfile --ignore-scripts
1718
RUN cd server; bun prisma generate --sql

0 commit comments

Comments
 (0)