mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
actually run program
This commit is contained in:
parent
0dd4d2c88e
commit
afa760d893
|
|
@ -7,7 +7,7 @@
|
||||||
# - `prisma`: Execute a Prisma command, sends
|
# - `prisma`: Execute a Prisma command, sends
|
||||||
|
|
||||||
# Exit immediately if a command exits with a non-zero status.
|
# Exit immediately if a command exits with a non-zero status.
|
||||||
set -euxo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
cd /app/dist
|
cd /app/dist
|
||||||
|
|
||||||
|
|
@ -15,9 +15,7 @@ cd /app/dist
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"start")
|
"start")
|
||||||
# Migrate the database
|
# Migrate the database
|
||||||
exec /bin/bash /app/entrypoint.sh prisma migrate deploy
|
exec /bin/bash /app/entrypoint.sh prisma migrate deploy && bun run ./index.js --prod
|
||||||
# Start the server
|
|
||||||
exec bun run ./index.js --prod
|
|
||||||
;;
|
;;
|
||||||
"cli")
|
"cli")
|
||||||
# Start the CLI
|
# Start the CLI
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue