From 1fae2ce63f65088935c6329794acf36e8ff6ddc8 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sun, 7 Apr 2024 01:37:00 -1000 Subject: [PATCH] aaaaaaaa --- entrypoint.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 80e218ca..92859fd8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 -``` \ No newline at end of file +esac \ No newline at end of file