Files
momentry_core/config/production.env
T
Accusys 3d441a1c76 release: v1.3.2 - Cross-Machine Deployment Support
Major Changes:
- Removed all hardcoded paths for cross-machine deployment
- Added unified path management module (path_utils.rs)
- Supports arbitrary user home directories
- Environment variable configuration for all paths

New Features:
- path_utils module with 15+ path resolution functions
- Dynamic user home directory detection
- Environment variable overrides for all paths
- Default paths using $HOME/momentry and $HOME/momentry_core

Fixed Files:
- Rust code: 8 core files (release.rs, service.rs, markbase_compat.rs, etc.)
- Python scripts: 10 files (ASR, ASRX, Face, Identity, VLM, Migration)
- Configuration: production.env (removed hardcoded paths)

Environment Variables Supported:
- HOME - User home directory
- MOMENTRY_ROOT - Momentry root directory
- MOMENTRY_CORE_DIR - Momentry_core directory
- MOMENTRY_OUTPUT_DIR - Output directory
- MOMENTRY_BACKUP_DIR - Backup directory
- MOMENTRY_STORAGE_ROOT - Storage root directory
- MOMENTRY_SCRIPTS_DIR - Scripts directory
- MOMENTRY_CLI_DIR - CLI tools directory

Breaking Changes:
- None (backward compatible with environment variables)

Deployment:
- Can now deploy to any machine with any username
- No hardcoded /Users/accusys paths in core functionality
- Ready for M4ProMini deployment (/Users/nextorageai)
2026-10-12 13:20:45 +08:00

49 lines
1.3 KiB
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
#
# ⚠️ PATH CONFIGURATION
# All paths are relative to user home directory by default.
# Set environment variables if you need custom paths.
# Server Configuration
MOMENTRY_SERVER_PORT=3002
MOMENTRY_REDIS_PREFIX=momentry:
# Database Schema
DATABASE_SCHEMA=public
# Output Directory (CRITICAL for Python scripts)
# Default: $HOME/momentry/output
# Uncomment and set if you need a custom path:
# MOMENTRY_OUTPUT_DIR=/custom/path/to/output
# Backup Directory
# Default: $HOME/momentry/backup/momentry
# Uncomment and set if you need a custom path:
# MOMENTRY_BACKUP_DIR=/custom/path/to/backup
# Storage
# Default: $HOME/momentry/var/sftpgo/data
# Uncomment and set if you need a custom path:
# MOMENTRY_STORAGE_ROOT=/custom/path/to/storage
# 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