production docker deployment update

This commit is contained in:
Alberto-Audrix committed 2026-09-10 15:44:34 +07:00
1 parent 11b0ca26a5
commit ded52d1ece
12 files changed
+616

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Sub-minute karung sync — cron cannot schedule under 1 minute.
# Only started when KARUNG_WEB_ADMIN_SYNC_ENABLED=true (off by default at HQ).
set -eu
cd /app
while true; do
/usr/local/bin/python manage.py sync_karung_from_web_admin >> /var/log/cron.log 2>&1 || true
sleep 30
done