fix: run API dev stack in dev mode
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user