chore: run db migrations

This commit is contained in:
2026-04-02 17:32:25 +02:00
parent effbe7d9c5
commit 66594ce8bd
2 changed files with 2 additions and 1 deletions

View File

@@ -35,4 +35,4 @@ COPY --from=build /app/.sern ./.sern
COPY --from=build /app/package.json ./package.json COPY --from=build /app/package.json ./package.json
COPY --from=build /app/prisma ./prisma COPY --from=build /app/prisma ./prisma
CMD ["bun", "dist/index.js"] CMD ["sh", "-c", "bun run db:migrate && bun dist/index.js"]

View File

@@ -7,6 +7,7 @@
"scripts": { "scripts": {
"build": "sern build", "build": "sern build",
"start": "bun run --inspect .", "start": "bun run --inspect .",
"db:migrate": "prisma migrate deploy",
"install": "sern build", "install": "sern build",
"commands:publish": "sern commands publish", "commands:publish": "sern commands publish",
"dev": "sern build -w --watch-command \"bun start\"", "dev": "sern build -w --watch-command \"bun start\"",