Files
rengine/api/entrypoint.sh
T
Yogesh OjhaandClaude Opus 5 344a1cda99 fix(compose): the api reloads on every package it mounts
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
2026-09-16 11:33:06 +05:30

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