fleet-platform/scripts/entrypoint.sh
kianiadee 1fc83dcac9
Some checks are pending
build / lint-test (push) Waiting to run
build / build-push (push) Blocked by required conditions
Revert "Bake git SHA into image so /health reports it under Coolify source builds"
This reverts commit 5c07499e99.
2026-05-29 00:58:56 +03:00

14 lines
280 B
Bash

#!/bin/sh
set -eu
ROLE="${APP_ROLE:-gateway}"
case "$ROLE" in
gateway|worker|cron)
exec uvicorn "app.entrypoints.${ROLE}:app" --host 0.0.0.0 --port 8000
;;
*)
echo "entrypoint: unknown APP_ROLE='$ROLE' (expected gateway|worker|cron)" >&2
exit 64
;;
esac