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

This commit is contained in:
2026-07-31 15:59:19 -04:00
parent 95dee37b60
commit 0b89833c32
5 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
name: Developer name: Developer
description: Implements core application features across Python backends and Vue frontends. description: Implements core application features across Python backends and Vue frontends.
mode: subagent mode: subagent
model: moonshotai/kimi-k2.7-code model: "deepseek/deepseek-v4-pro"
temperature: 0.2 thinking: "enabled"
maxSteps: 50 maxSteps: 50
permission: permission:
edit: allow edit: allow
+1 -1
View File
@@ -1,7 +1,7 @@
--- ---
description: "Drafts and updates technical documentation, architecture guides, and API specs." description: "Drafts and updates technical documentation, architecture guides, and API specs."
mode: "subagent" mode: "subagent"
model: "deepseek/deepseek/deepseek-v4-flash" model: "deepseek/deepseek-v4-flash"
permission: permission:
edit: allow edit: allow
bash: deny bash: deny
+4 -4
View File
@@ -212,10 +212,10 @@ def create_test_digest_token():
def send_test_digest(): def send_test_digest():
"""Trigger a digest email for a specific user by email address. """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. 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 return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404
user_id = get_validated_user_id() user_id = get_validated_user_id()
@@ -253,10 +253,10 @@ def send_test_digest():
def trigger_test_chore_expiry(): def trigger_test_chore_expiry():
"""Trigger the chore expiry notification check for a specific user by email address. """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. 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 return jsonify({'error': 'Not found', 'code': 'NOT_FOUND'}), 404
user_id = get_validated_user_id() user_id = get_validated_user_id()
+2
View File
@@ -24,6 +24,8 @@ services:
- ADMIN_FIRST_NAME=${ADMIN_FIRST_NAME} - ADMIN_FIRST_NAME=${ADMIN_FIRST_NAME}
- ADMIN_LAST_NAME=${ADMIN_LAST_NAME} - ADMIN_LAST_NAME=${ADMIN_LAST_NAME}
- MONGO_URI=${MONGO_URI} - MONGO_URI=${MONGO_URI}
- DATA_ENV=test
- DB_ENV=test
volumes: volumes:
- chores-test-app-backend-data:/app/data - chores-test-app-backend-data:/app/data
+2
View File
@@ -16,6 +16,8 @@ services:
- VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY} - VAPID_PUBLIC_KEY=${VAPID_PUBLIC_KEY}
- VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY} - VAPID_PRIVATE_KEY=${VAPID_PRIVATE_KEY}
- MONGO_URI=${MONGO_URI} - MONGO_URI=${MONGO_URI}
- DATA_ENV=prod
- DB_ENV=prod
volumes: volumes:
- chores-app-backend-data:/app/data # Assuming backend data storage; adjust path as needed - chores-app-backend-data:/app/data # Assuming backend data storage; adjust path as needed
networks: networks: