Add migration script for database updates and seeding
Adds a new `migrate` script to the API server package.json and updates the docker-compose.yml to use this script for database migrations and seeding. Also updates the README.md to reflect the new migration command. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 5a3829b7-335a-40a6-98a8-de6f98c908ff Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/jLdqQ2v Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -162,6 +162,8 @@ services:
|
||||
NODE_ENV: production
|
||||
SEED_ADMIN_PASSWORD: ${SEED_ADMIN_PASSWORD}
|
||||
SEED_USER_PASSWORD: ${SEED_USER_PASSWORD}
|
||||
# Single canonical entrypoint — wraps `pnpm --filter db push` + seed.
|
||||
command: ["pnpm", "--filter", "@workspace/api-server", "run", "migrate"]
|
||||
networks: [internal]
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user