mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-30 19:58:50 +00:00
Visitors hold admin sessions (the editor demo needs is_admin), and some of them restarted HA from the UI — exit code 100 between hourly resets looked like stand instability. demo_guard re-registers restart/stop as no-op services after startup; the hourly docker-level reset is untouched. stand-reset-timer.js logs a per-minute countdown to the :00 reset in the browser console (warn for the last 5 minutes); stand-dev-info.js is the one-shot dev-stand note. Also on the stand host: mem_limit 1536m per container in compose.yml as an OOM safety net.
8 lines
616 B
JavaScript
8 lines
616 B
JavaScript
// Dev-стенд House Plan: ежечасного сброса НЕТ. Контейнер перезапускается
|
|
// только при новом коммите в ветку dev (hp-update-dev.timer, проверка раз
|
|
// в 10 минут). Одно информационное сообщение при загрузке, без таймера.
|
|
console.info(
|
|
"%c[dev-стенд] сброс только при деплое: перезапуск при новом коммите в dev (проверка раз в 10 мин)",
|
|
"background:#5d4037;color:#fff;padding:2px 6px;border-radius:3px"
|
|
);
|