fix(erpnext): link supervisor config and load process groups

bench setup production generates supervisor.conf but doesn't
symlink it into /etc/supervisor/conf.d/. Without the link,
supervisord has no programs and gunicorn never starts (502).

Add: symlink + supervisorctl reread/update after bench setup.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 16:01:13 +01:00
parent 8c9c69aa22
commit f8e8feea87

View File

@@ -87,6 +87,9 @@ $STD curl -fsSL https://bootstrap.pypa.io/get-pip.py | "${BENCH_VENV}/bin/python
$STD "${BENCH_VENV}/bin/python" -m pip install ansible
ln -sf "${BENCH_VENV}"/bin/ansible* /usr/local/bin/
$STD bash -c 'export PATH="/home/frappe/.local/bin:$PATH"; cd /opt/frappe-bench && bench setup production frappe --yes'
ln -sf /opt/frappe-bench/config/supervisor.conf /etc/supervisor/conf.d/frappe-bench.conf
$STD supervisorctl reread
$STD supervisorctl update
$STD systemctl enable --now supervisor
msg_ok "Set up Production"