From 04b76aaabcdec73049ecfd3b4736702ac4f93713 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sun, 7 Apr 2024 01:34:21 -1000 Subject: [PATCH] Fix entrypoint --- entrypoint.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8d42e889..80e218ca 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,12 +15,14 @@ cd /app/dist case "$1" in "start") # Migrate the database - exec /bin/bash /app/entrypoint.sh prisma migrate deploy && bun run ./index.js --prod + /bin/bash /app/entrypoint.sh prisma migrate deploy + # Run + bun run ./index.js --prod ;; "cli") # Start the CLI shift 1 - exec bun run ./cli.js "$@" + bun run ./cli.js "$@" ;; "prisma") # Proxy all Prisma commands @@ -29,7 +31,7 @@ case "$1" in # Set DATABASE_URL env variable to the output of bun run ./dist/prisma.js export DATABASE_URL=$(bun run ./prisma.js) # Execute the Prisma binary - exec bun run ./node_modules/.bin/prisma "$@" + bun run ./node_modules/.bin/prisma "$@" ;; *) # Run custom commands