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

@@ -1,4 +1,4 @@
# Project Context for GitHub Copilot (v1.2.2)
# Project Context for GitHub Copilot (v1.2.3)
This document provides technical context, architectural decisions, and code conventions for the **Alert Message Center** project. It is intended to help AI assistants understand the codebase.
@@ -216,6 +216,7 @@ The database schema is defined in `apps/server/src/db/schema.ts`.
- GitHub Actions automates building a multi-stage Docker image and pushing it to GitHub Container Registry (GHCR).
- Image path: `ghcr.io/${USER}/alert-message-center`.
- Deployment Architecture: A single container runs the Bun server, which serves API requests and static frontend assets (via `hono/bun`'s `serveStatic`).
- **Database Initialization**: The Docker entrypoint automatically runs `bun run db:migrate:deploy` before starting the server to ensure the schema is up-to-date in new environments.
## 8. Core Documents