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.
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