mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Add migrations to start script
This commit is contained in:
parent
742edb24b5
commit
79f278e0bf
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ cd /app/dist
|
||||||
# Parse first argument
|
# Parse first argument
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"start")
|
"start")
|
||||||
|
# Migrate the database
|
||||||
|
exec /bin/bash /app/entrypoint.sh prisma migrate deploy
|
||||||
# Start the server
|
# Start the server
|
||||||
exec bun run ./index.js --prod
|
exec bun run ./index.js --prod
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue