From afa760d893817da235c7f142a8c25a75700c8099 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sun, 7 Apr 2024 01:29:32 -1000 Subject: [PATCH] actually run program --- entrypoint.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index da394b87..8d42e889 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ # - `prisma`: Execute a Prisma command, sends # Exit immediately if a command exits with a non-zero status. -set -euxo pipefail +set -euo pipefail cd /app/dist @@ -15,9 +15,7 @@ cd /app/dist case "$1" in "start") # Migrate the database - exec /bin/bash /app/entrypoint.sh prisma migrate deploy - # Start the server - exec bun run ./index.js --prod + exec /bin/bash /app/entrypoint.sh prisma migrate deploy && bun run ./index.js --prod ;; "cli") # Start the CLI