2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00

fix: restart supervisor service after conf update

This commit is contained in:
Gavin D'souza 2020-03-13 20:01:37 +05:30
parent 1f0a5ce556
commit 48f70aca65

View File

@ -8,6 +8,7 @@ import bench
from bench.app import get_current_frappe_version, use_rq
from bench.utils import get_bench_name, find_executable
from bench.config.common_site_config import get_config, update_config, get_gunicorn_workers
from bench.config.production_setup import service
# imports - third party imports
import click
@ -74,3 +75,6 @@ def update_supervisord_conf(user):
with open(supervisord_conf, "w") as f:
config.write(f)
# restart supervisor to take new changes into effect
service('supervisor', 'restart')