diff --git a/bench/config/production_setup.py b/bench/config/production_setup.py index 6809b733..4d6f241a 100755 --- a/bench/config/production_setup.py +++ b/bench/config/production_setup.py @@ -38,7 +38,15 @@ def setup_production(user, bench_path='.', yes=False): generate_systemd_config(bench_path=bench_path, user=user, yes=yes) else: print("Setting Up supervisor...") - update_supervisord_config(user=user, yes=yes) + try: + update_supervisord_config(user=user, yes=yes) + except Exception: + import sys, traceback + exc_type, exc_value, exc_tb = sys.exc_info() + trace_list = traceback.format_exception(exc_type, exc_value, exc_tb) + body = "".join(str(t) for t in trace_list) + print(body) + generate_supervisor_config(bench_path=bench_path, user=user, yes=yes) print("Setting Up NGINX...")