feat: update environment variables to set DATA_ENV and DB_ENV to 'prod'
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m39s
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m39s
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
name: Developer
|
||||
description: Implements core application features across Python backends and Vue frontends.
|
||||
mode: subagent
|
||||
model: moonshotai/kimi-k2.7-code
|
||||
temperature: 0.2
|
||||
model: "deepseek/deepseek-v4-pro"
|
||||
thinking: "enabled"
|
||||
maxSteps: 50
|
||||
permission:
|
||||
edit: allow
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
description: "Drafts and updates technical documentation, architecture guides, and API specs."
|
||||
mode: "subagent"
|
||||
model: "deepseek/deepseek/deepseek-v4-flash"
|
||||
model: "deepseek/deepseek-v4-flash"
|
||||
permission:
|
||||
edit: allow
|
||||
bash: deny
|
||||
|
||||
@@ -212,10 +212,10 @@ def create_test_digest_token():
|
||||
def send_test_digest():
|
||||
"""Trigger a digest email for a specific user by email address.
|
||||
|
||||
Only active when DB_ENV is not 'production'. Requires admin authentication.
|
||||
Only active when DB_ENV is not 'prod'. Requires admin authentication.
|
||||
Note: actual email delivery is skipped in e2e mode by email_sender.
|
||||
"""
|
||||
if os.environ.get('DB_ENV') == 'production':
|
||||
if os.environ.get('DB_ENV') == 'prod':
|
||||
return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404
|
||||
|
||||
user_id = get_validated_user_id()
|
||||
@@ -253,10 +253,10 @@ def send_test_digest():
|
||||
def trigger_test_chore_expiry():
|
||||
"""Trigger the chore expiry notification check for a specific user by email address.
|
||||
|
||||
Only active when DB_ENV is not 'production'. Requires admin authentication.
|
||||
Only active when DB_ENV is not 'prod'. Requires admin authentication.
|
||||
Note: actual push delivery requires VAPID keys to be configured.
|
||||
"""
|
||||
if os.environ.get('DB_ENV') == 'production':
|
||||
if os.environ.get('DB_ENV') == 'prod':
|
||||
return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404
|
||||
|
||||
user_id = get_validated_user_id()
|
||||
|
||||
@@ -24,6 +24,8 @@ services:
|
||||
- ADMIN_FIRST_NAME=${ADMIN_FIRST_NAME}
|
||||
- ADMIN_LAST_NAME=${ADMIN_LAST_NAME}
|
||||
- MONGO_URI=${MONGO_URI}
|
||||
- DATA_ENV=test
|
||||
- DB_ENV=test
|
||||
volumes:
|
||||
- chores-test-app-backend-data:/app/data
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ services:
|
||||
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY}
|
||||
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY}
|
||||
- MONGO_URI=${MONGO_URI}
|
||||
- DATA_ENV=prod
|
||||
- DB_ENV=prod
|
||||
volumes:
|
||||
- chores-app-backend-data:/app/data # Assuming backend data storage; adjust path as needed
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user