From d1344adb4ffe8162d9bfc29b6fb765970c3aeebf Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 14 Jul 2026 00:53:03 +0000 Subject: [PATCH] chore(uwsgi): update configuration for worker reload mechanism Added a new file entry to .gitignore for .uwsgi-reload and modified uwsgi.debug.ini to implement a touch-based worker reload mechanism, replacing the previous py-autoreload setting. This change enhances the management of API worker reloads during development. --- .gitignore | 1 + docker/uwsgi.debug.ini | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c75198a0..6d6b1613 100755 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ celerybeat-schedule* dump.rdb debugpy* uwsgi.sock +.uwsgi-reload package-lock.json models .idea diff --git a/docker/uwsgi.debug.ini b/docker/uwsgi.debug.ini index 6753d1a6..80f45ae8 100644 --- a/docker/uwsgi.debug.ini +++ b/docker/uwsgi.debug.ini @@ -66,7 +66,9 @@ ignore-write-errors = true disable-write-exception = true # Debugging settings -py-autoreload = 1 +# Reload API workers: touch /app/.uwsgi-reload +; py-autoreload = 1 +touch-workers-reload = /app/.uwsgi-reload honour-stdin = true # Environment variables