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.
|
# Exit immediately if a command exits with a non-zero status.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
cd /app/dist
|
# cd /app/dist
|
||||||
|
|
||||||
# Parse first argument
|
# Parse first argument
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"start")
|
"start")
|
||||||
# Migrate the database
|
# Migrate the database and run
|
||||||
/bin/bash /app/entrypoint.sh prisma migrate deploy
|
/bin/bash /app/entrypoint.sh prisma migrate deploy && bun run ./index.js --prod
|
||||||
# Run
|
|
||||||
bun run ./index.js --prod
|
|
||||||
;;
|
;;
|
||||||
"cli")
|
"cli")
|
||||||
# Start the CLI
|
# Start the CLI
|
||||||
|
|
@ -37,5 +35,4 @@ case "$1" in
|
||||||
# Run custom commands
|
# Run custom commands
|
||||||
exec "$@"
|
exec "$@"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
```
|
|
||||||
Loading…
Reference in a new issue