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:
parent
851b4c3275
commit
115d88faf3
@ -38,7 +38,15 @@ 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...")
|
||||||
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)
|
generate_supervisor_config(bench_path=bench_path, user=user, yes=yes)
|
||||||
|
|
||||||
print("Setting Up NGINX...")
|
print("Setting Up NGINX...")
|
||||||
|
Loading…
Reference in New Issue
Block a user