fix(deploy): replace staging/production env placeholders blocking CI deploy.

Staging keeps Redis open on the internal compose network; production gets real Redis and Flower credentials.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin
2026-05-22 17:43:27 +08:00
parent e5205702e1
commit 4f0a314656
2 changed files with 5 additions and 7 deletions

View File

@@ -6,10 +6,9 @@ DATABASE_URL=postgresql://postgres:postgres@postgres:5432/life_echo
# Redis业务 DB/0Celery 自动 DB/1compose redis 使用 REDIS_PASSWORD 作为 requirepass
REDIS_URL=redis://redis:6379/0
REDIS_PASSWORD=replace_with_strong_redis_password
# CELERY_REDIS_URL=redis://:replace_with_strong_redis_password@redis:6379/1
REDIS_PASSWORD=1b1b93a8145c6f74d3c12d19073c47843ee17adf2e988cab
FLOWER_USER=admin
FLOWER_PASSWORD=replace_with_strong_flower_password
FLOWER_PASSWORD=2c590b68e860f73589c6282b0e252c4e477eaae22e1cffd0
SECRET_KEY=cf47555c7ecbe5ddb7fd2113c59e08a8bcb110810c42f7c644e06a5acc898608

View File

@@ -8,12 +8,11 @@ POSTGRES_HOST_PORT=15432
APP_ENV=staging
DATABASE_URL=postgresql://postgres:postgres@postgres:5432/life_echo
# Redis业务 DB/0Celery 自动 DB/1compose redis 使用 REDIS_PASSWORD 作为 requirepass
# Redis业务 DB/0Celery 自动 DB+1staging 内网 compose 暂不要求 requirepass
REDIS_URL=redis://redis:6379/0
REDIS_PASSWORD=replace_with_strong_redis_password
# CELERY_REDIS_URL=redis://:replace_with_strong_redis_password@redis:6379/1
# REDIS_PASSWORD=
FLOWER_USER=admin
FLOWER_PASSWORD=replace_with_strong_flower_password
FLOWER_PASSWORD=8a39e302b0b1f2a4492fdb46fa851a1713b66a8b98fd86fd
SECRET_KEY=cf47555c7ecbe5ddb7fd2113c59e08a8bcb110810c42f7c644e06a5acc898608