Fix dev_watcher sentinel path for container permissions
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m15s

The sentinel was written to shared/_reload_sentinel.py but shared/ is
volume-mounted as root:root, so appuser can't create files there.
Move sentinel to /app/_reload_sentinel.py which is owned by appuser
and still under Hypercorn's --reload watch path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 08:37:29 +00:00
parent 486ab834de
commit d6f3250a77

View File

@@ -13,7 +13,7 @@ import time
import sys import sys
WATCH_EXTENSIONS = {".sx", ".sx", ".js", ".css"} WATCH_EXTENSIONS = {".sx", ".sx", ".js", ".css"}
SENTINEL = os.path.join(os.path.dirname(__file__), "_reload_sentinel.py") SENTINEL = "/app/_reload_sentinel.py"
POLL_INTERVAL = 1.5 # seconds POLL_INTERVAL = 1.5 # seconds