do migrate on start instead
This commit is contained in:
@@ -21,7 +21,7 @@ RUN bun install
|
||||
COPY . .
|
||||
WORKDIR /app/apps/backend
|
||||
RUN bunx prisma generate
|
||||
RUN bunx prisma migrate deploy
|
||||
# RUN bunx prisma migrate deploy
|
||||
WORKDIR /app/apps/backend
|
||||
EXPOSE ${PORT}
|
||||
CMD ["bun", "start"]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "bun src/app.ts",
|
||||
"start": "bunx prisma migrate deploy && bun src/app.ts",
|
||||
"dev": "bun --watch src/app.ts",
|
||||
"codegen": "bunx prisma generate"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user