feat: updade workspace
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# OKR backend container entrypoint for MySQL.
|
||||
# - Applies pending Prisma migrations (idempotent).
|
||||
# - Seeds initial data via upsert (safe to run on every start).
|
||||
set -e
|
||||
|
||||
export PATH="/app/node_modules/.bin:$PATH"
|
||||
|
||||
echo "[OKR] Applying database migrations..."
|
||||
npx prisma migrate deploy
|
||||
|
||||
echo "[OKR] Seeding database..."
|
||||
npx prisma db seed
|
||||
|
||||
echo "[OKR] Starting backend on port ${PORT:-3001}"
|
||||
exec node dist/main.js
|
||||
Reference in New Issue
Block a user