fix: add environment variable exports to startup scripts

- 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.
This commit is contained in:
Accusys
2026-06-21 21:21:32 +08:00
parent e949ac793d
commit 97180aa7cd
6 changed files with 177 additions and 0 deletions

View File

@@ -7,6 +7,12 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
# Production environment variables
export MOMENTRY_OUTPUT_DIR=/Users/accusys/momentry/output
export DATABASE_SCHEMA=public
export MOMENTRY_REDIS_PREFIX=momentry:
export MOMENTRY_SERVER_PORT=3002
# Kill existing server on port 3002
PID=$(lsof -ti :3002 2>/dev/null || true)
if [ -n "$PID" ]; then