This commit is contained in:
Jesse Wierzbinski 2024-04-07 01:37:00 -10:00
parent 04b76aaabc
commit 1fae2ce63f
No known key found for this signature in database

View file

@ -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
@ -38,4 +36,3 @@ case "$1" in
exec "$@" exec "$@"
;; ;;
esac esac
```