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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user