fix: run API dev stack in dev mode

This commit is contained in:
2026-05-28 10:15:33 +01:00
parent b452c9f593
commit 7fede4d082
3 changed files with 17 additions and 4 deletions
+6 -4
View File
@@ -98,11 +98,13 @@ if [ "$RUN_INIT" = "true" ]; then
fi
fi
# Start the production server (unless init-only mode)
# Start the server (unless init-only mode). Default remains production, but
# development Compose can set START_MODE=dev so cc-api-dev reports and uses
# development Redis/config instead of silently booting as prod.
START_MODE="${START_MODE:-prod}"
if [ "$1" != "init-only" ] && [ -z "$INIT_ONLY" ]; then
print_status "Starting production server..."
exec ./start.sh prod
print_status "Starting ${START_MODE} server..."
exec ./start.sh "$START_MODE"
else
print_status "Init-only mode - not starting server"
fi