mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
aaaaaaaa
This commit is contained in:
parent
04b76aaabc
commit
1fae2ce63f
|
|
@ -9,15 +9,13 @@
|
|||
# Exit immediately if a command exits with a non-zero status.
|
||||
set -euo pipefail
|
||||
|
||||
cd /app/dist
|
||||
# cd /app/dist
|
||||
|
||||
# Parse first argument
|
||||
case "$1" in
|
||||
"start")
|
||||
# Migrate the database
|
||||
/bin/bash /app/entrypoint.sh prisma migrate deploy
|
||||
# Run
|
||||
bun run ./index.js --prod
|
||||
# Migrate the database and run
|
||||
/bin/bash /app/entrypoint.sh prisma migrate deploy && bun run ./index.js --prod
|
||||
;;
|
||||
"cli")
|
||||
# Start the CLI
|
||||
|
|
@ -37,5 +35,4 @@ case "$1" in
|
|||
# Run custom commands
|
||||
exec "$@"
|
||||
;;
|
||||
esac
|
||||
```
|
||||
esac
|
||||
Loading…
Reference in a new issue