mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix entrypoint
This commit is contained in:
parent
afa760d893
commit
04b76aaabc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue