- Added MOMENTRY_OUTPUT_DIR, DATABASE_SCHEMA, MOMENTRY_REDIS_PREFIX exports - Created run-worker-3002.sh for standalone worker - Created config/ directory with environment-specific files - Updated AGENTS.md with critical variables section and release checklist This fixes Python subprocess environment variable inheritance issue where store_traced_faces.py was using wrong output directory.
39 lines
975 B
Bash
39 lines
975 B
Bash
# Production Environment Configuration
|
|
# Used by: momentry binary on port 3002
|
|
#
|
|
# This file extracts production-specific variables from .env
|
|
# Startup scripts must export these variables for Python subprocess inheritance
|
|
|
|
# Server Configuration
|
|
MOMENTRY_SERVER_PORT=3002
|
|
MOMENTRY_REDIS_PREFIX=momentry:
|
|
|
|
# Database Schema
|
|
DATABASE_SCHEMA=public
|
|
|
|
# Output Directory (CRITICAL for Python scripts)
|
|
MOMENTRY_OUTPUT_DIR=/Users/accusys/momentry/output
|
|
|
|
# Backup Directory
|
|
MOMENTRY_BACKUP_DIR=/Users/accusys/momentry/backup/momentry
|
|
|
|
# Storage
|
|
MOMENTRY_STORAGE_ROOT=/Users/accusys/momentry/var/sftpgo/data
|
|
|
|
# Python Path
|
|
MOMENTRY_PYTHON_PATH=/opt/homebrew/bin/python3.11
|
|
|
|
# Logging
|
|
RUST_LOG=debug
|
|
MOMENTRY_LOG_LEVEL=debug
|
|
|
|
# Worker Configuration
|
|
MOMENTRY_WORKER_ENABLED=true
|
|
MOMENTRY_MAX_CONCURRENT=6
|
|
MOMENTRY_POLL_INTERVAL=10
|
|
MOMENTRY_WORKER_BATCH_SIZE=5
|
|
MOMENTRY_FORCE_RETRY=true
|
|
|
|
# TMDb Integration
|
|
TMDB_API_KEY=e9cde52197f6f8df4d9db99da93db1fb
|
|
MOMENTRY_TMDB_PROBE_ENABLED=true |