File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ public-hoist-pattern[] = *prisma*
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ COPY --from=builder /app/out/full/ .
3939COPY --from=builder /app/apps/server/run.sh ./apps/server/run.sh
4040
4141RUN pnpx turbo run db:generate \
42- & pnpx turbo run build
42+ & pnpx turbo run build
4343
44- CMD node /app/apps/server/dist/main.js
44+ WORKDIR /app/apps/server
45+
46+ CMD pnpx prisma migrate deploy && node /app/apps/server/dist/main.js
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ services:
2121 - " 3001:3001"
2222 volumes :
2323 - ./config.yaml:/app/config.yaml
24+ environment :
25+ DATABASE_URL : postgresql://postgres:postgres@postgres:5432/postgres
2426 postgres :
2527 image : postgres:latest
2628 networks :
@@ -43,5 +45,6 @@ services:
4345volumes :
4446 postgres_data :
4547
48+
4649networks :
4750 caw :
You can’t perform that action at this time.
0 commit comments