feat: make db migration automatically

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2026-01-15 11:48:01 +08:00
parent 607f12b154
commit fc3435dc80
9 changed files with 73 additions and 27 deletions

View File

@@ -23,4 +23,4 @@ WORKDIR /app/apps/server
EXPOSE 3000
CMD ["bun", "run", "start"]
CMD ["sh", "-c", "bun run db:migrate:deploy && bun run start"]