fix: run API dev stack in dev mode
This commit is contained in:
parent
b452c9f593
commit
7fede4d082
@ -25,6 +25,11 @@ services:
|
||||
- .env.dev
|
||||
environment:
|
||||
- REDIS_HOST=redis-dev
|
||||
- REDIS_DB_DEV=0
|
||||
- BACKEND_DEV_MODE=true
|
||||
- APP_ENV=development
|
||||
- ENVIRONMENT=development
|
||||
- START_MODE=dev
|
||||
- RUN_INIT=false
|
||||
- INIT_MODE=infra
|
||||
ports:
|
||||
@ -45,6 +50,10 @@ services:
|
||||
- .env.dev
|
||||
environment:
|
||||
- REDIS_HOST=redis-dev
|
||||
- REDIS_DB_DEV=0
|
||||
- BACKEND_DEV_MODE=true
|
||||
- APP_ENV=development
|
||||
- ENVIRONMENT=development
|
||||
- API_HEALTH_URL=http://192.168.0.64:18000/health
|
||||
depends_on:
|
||||
redis-dev:
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -40,6 +40,8 @@ def test_dev_api_health_endpoint_is_healthy():
|
||||
assert payload['status'] == 'healthy'
|
||||
assert payload['services']['supabase']['status'] == 'healthy'
|
||||
assert payload['services']['redis']['status'] == 'healthy'
|
||||
assert payload['services']['redis']['environment'] == 'dev'
|
||||
assert payload['services']['redis']['database'] == 0
|
||||
|
||||
|
||||
def test_supabase_dev_seed_core_counts():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user