mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-20 15:21:30 +02:00
The reloader watched eight of the ten packages compose mounts into the api, so a save in interest/ or connectors/ served stale code until the container was restarted. The entrypoint builds --reload-dir from one list, and a touch of interest/providers/rules/provider.py now reloads. worker-default, worker-beat and flower repeated the same fourteen mounts; the list is declared once and the three share it, so beat and flower cannot drift from the worker. The rendered config is unchanged apart from the anchor itself. celery_beat_data was declared and mounted nowhere — beat keeps its schedule in /tmp deliberately, after a stale shelve bit once. .github is 33 MB of README screenshots and reached every build context; the api context is 45 MB down to 11 MB. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DafWxfoWZXVDgr9KroJBDZ
21 lines
593 B
Bash
Executable File
21 lines
593 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# every package compose mounts from the host; a save in one reloads the api
|
|
RELOAD_DIRS="app shared tools stages reports interest mcp channels connectors toolbox"
|
|
|
|
if [ "${API_RELOAD:-true}" = "true" ]; then
|
|
for dir in $RELOAD_DIRS; do
|
|
set -- "$@" --reload-dir "/app/$dir"
|
|
done
|
|
exec uv run uvicorn app.main:app \
|
|
--host 0.0.0.0 --port 8000 \
|
|
--reload "$@" \
|
|
--timeout-graceful-shutdown 2
|
|
fi
|
|
|
|
exec uv run uvicorn app.main:app \
|
|
--host 0.0.0.0 --port 8000 \
|
|
--workers "${API_WORKERS:-4}" \
|
|
--timeout-graceful-shutdown 10
|