mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:01:09 +02:00
High priority stability features: - Add all LaunchD plists to Git for version control - Handle crash-looping containers (Restarting status) in ensure-containers.sh - Add database backup script with daily/weekly rotation - Add Docker log rotation setup (50MB max, 3 files per container) New files: - scripts/mac-mini/backup-databases.sh - Daily pg_dump with rotation - scripts/mac-mini/setup-docker-logging.sh - Configure daemon.json - scripts/mac-mini/launchd/*.plist - All 8 LaunchD service configs - scripts/mac-mini/launchd/README.md - Documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Label</key>
|
|
<string>com.manacore.image-gen</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>/Users/mana/projects/manacore-monorepo/services/mana-image-gen/.venv/bin/python3</string>
|
|
<string>-m</string>
|
|
<string>uvicorn</string>
|
|
<string>app.main:app</string>
|
|
<string>--host</string>
|
|
<string>0.0.0.0</string>
|
|
<string>--port</string>
|
|
<string>3025</string>
|
|
</array>
|
|
<key>WorkingDirectory</key>
|
|
<string>/Users/mana/projects/manacore-monorepo/services/mana-image-gen</string>
|
|
<key>EnvironmentVariables</key>
|
|
<dict>
|
|
<key>PATH</key>
|
|
<string>/opt/homebrew/bin:/Users/mana/projects/manacore-monorepo/services/mana-image-gen/.venv/bin:/usr/local/bin:/usr/bin:/bin</string>
|
|
<key>HOME</key>
|
|
<string>/Users/mana</string>
|
|
<key>PORT</key>
|
|
<string>3025</string>
|
|
<key>FLUX_BINARY</key>
|
|
<string>/Users/mana/flux2/flux</string>
|
|
<key>FLUX_MODEL_DIR</key>
|
|
<string>/Users/mana/flux2/model</string>
|
|
<key>DEFAULT_STEPS</key>
|
|
<string>4</string>
|
|
<key>GENERATION_TIMEOUT</key>
|
|
<string>300</string>
|
|
<key>CORS_ORIGINS</key>
|
|
<string>https://mana.how,https://picture.mana.how,https://chat.mana.how</string>
|
|
</dict>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>KeepAlive</key>
|
|
<dict>
|
|
<key>SuccessfulExit</key>
|
|
<false/>
|
|
<key>Crashed</key>
|
|
<true/>
|
|
</dict>
|
|
<key>StandardOutPath</key>
|
|
<string>/tmp/manacore-image-gen.log</string>
|
|
<key>StandardErrorPath</key>
|
|
<string>/tmp/manacore-image-gen.error.log</string>
|
|
</dict>
|
|
</plist>
|