From fcf8cf34b83cda30d5f417f47b016c56c3b984bc Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 1 Sep 2015 15:43:34 -0700 Subject: [PATCH] Skip nginx restart on env var NO_SERVICE_RESTART --- bench/production_setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bench/production_setup.py b/bench/production_setup.py index 8e149530..ae2a4e9d 100644 --- a/bench/production_setup.py +++ b/bench/production_setup.py @@ -64,4 +64,6 @@ def setup_production(user, bench='.'): os.symlink(os.path.abspath(os.path.join(bench, 'config', 'supervisor.conf')), os.path.join(get_supervisor_confdir(), supervisor_conf_filename)) os.symlink(os.path.abspath(os.path.join(bench, 'config', 'nginx.conf')), '/etc/nginx/conf.d/frappe.conf') exec_cmd('supervisorctl reload') + if os.environ.get('NO_SERVICE_RESTART'): + return restart_service('nginx')