a3c3ed8dc1
- Add src/core/path_utils.rs with runtime path resolution helpers
- Replace all env!("CARGO_MANIFEST_DIR") with runtime resolution
- Priority: env var -> current_exe sibling -> dev fallback
Changes:
- executor.rs: scripts_dir(), cli_dir() (4 locations)
- face.rs: swift_processor_path()
- tool_selector.rs: swift_binary_path()
- thumbnail/mod.rs: script_path()
Issue: CARGO_MANIFEST_DIR expands to build machine path at compile time,
breaking on binary-only release hosts.
Solution: Resolve paths at runtime in this order:
1. Explicit environment variable (MOMENTRY_SCRIPTS_DIR, MOMENTRY_CLI_DIR)
2. Sibling of current_exe (same directory as running binary)
3. Relative path fallback (dev machine)
Verified: cargo check --lib passes
48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
DATABASE_URL=postgres://accusys@localhost:5432/momentry
|
|
DATABASE_SCHEMA=public
|
|
MOMENTRY_DEMO_API_KEY='muser_demo_key_32chars_abcdef1234567890'
|
|
REDIS_URL=redis://127.0.0.1:6379
|
|
|
|
# LLM Configuration
|
|
# Agent Search uses Ollama (llama3.1:8b) - OpenAI-compatible endpoint
|
|
MOMENTRY_LLM_CHAT_URL=http://localhost:8080/v1/chat/completions
|
|
MOMENTRY_LLM_CHAT_MODEL=gemma-4-12b-it
|
|
|
|
# VLM uses Gemma4 12B (port 8080) - OpenAI-compatible endpoint
|
|
# Gemma4 多模态已启用 (llama.cpp version 9590)
|
|
MOMENTRY_LLM_VISION_URL=http://127.0.0.1:8080/v1/chat/completions
|
|
MOMENTRY_LLM_VISION_MODEL=gemma-4-12b-it
|
|
|
|
# Summary LLM uses Ollama
|
|
MOMENTRY_LLM_SUMMARY_URL=http://localhost:8080/v1/chat/completions
|
|
MOMENTRY_LLM_SUMMARY_MODEL=gemma-4-12b-it
|
|
MOMENTRY_LLM_SUMMARY_ENABLED=true
|
|
|
|
# Vector database
|
|
QDRANT_URL=http://127.0.0.1:6333
|
|
QDRANT_API_KEY=Test3200Test3200Test3200
|
|
QDRANT_COLLECTION=momentry_rule1
|
|
|
|
# MongoDB
|
|
MONGODB_URL=mongodb://localhost:27017
|
|
MONGODB_DATABASE=momentry
|
|
MONGODB_CACHE_ENABLED=true
|
|
|
|
# Embedding
|
|
MOMENTRY_EMBED_URL=http://localhost:11436
|
|
TMDB_API_KEY=e9cde52197f6f8df4d9db99da93db1fb
|
|
MOMENTRY_TMDB_PROBE_ENABLED=false
|
|
|
|
# Video serve (Caddy file_server for local direct playback)
|
|
MOMENTRY_STORAGE_ROOT=/Users/accusys/momentry/var/sftpgo/data
|
|
MOMENTRY_SERVE_BASE_URL=https://m5wp.momentry.ddns.net/files
|
|
MOMENTRY_PYTHON_PATH=/opt/homebrew/bin/python3.11
|
|
RUST_LOG=info
|
|
|
|
# Rust Processors (Enable Rust implementations where available)
|
|
|
|
# MOMENTRY_FORCE_RETRY removed - use default (false) so max_retry=3 kicks in
|
|
MOMENTRY_OUTPUT_DIR=/Users/accusys/momentry/output
|
|
MOMENTRY_LLM_CHAT_TIMEOUT=300
|
|
MOMENTRY_ASR_TIMEOUT=10800
|