2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-23 07:08:23 +00:00

FIX: setup production command: supervisor conf not deployed the first time

This commit is contained in:
Marc de Lima Lucio 2024-02-22 11:10:04 +01:00
parent bc942e6a8e
commit 72ba24b93b

View File

@ -48,6 +48,7 @@ def setup_production(user, bench_path=".", yes=False):
generate_systemd_config(bench_path=bench_path, user=user, yes=yes) generate_systemd_config(bench_path=bench_path, user=user, yes=yes)
else: else:
print("Setting Up supervisor...") print("Setting Up supervisor...")
conf.update({"restart_supervisor_on_update": True}) # This conf is False the first time, it is set later
check_supervisord_config(user=user) check_supervisord_config(user=user)
generate_supervisor_config(bench_path=bench_path, user=user, yes=yes) generate_supervisor_config(bench_path=bench_path, user=user, yes=yes)