mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Add migrations to start script
This commit is contained in:
parent
742edb24b5
commit
79f278e0bf
|
|
@ -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…
Reference in a new issue