2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

debug: check if there's an exception being raised silently

This commit is contained in:
Gavin D'souza 2020-07-13 18:20:05 +05:30
parent 851b4c3275
commit 115d88faf3

View File

@ -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...")
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...")