From 7558c2b3e4eded52e261d211ee65ee5acd443c3f Mon Sep 17 00:00:00 2001 From: ibuler Date: Sat, 30 Dec 2017 23:02:10 +0800 Subject: [PATCH] [Debug] debug print error --- run_server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run_server.py b/run_server.py index 4fe070339..9ae558f98 100644 --- a/run_server.py +++ b/run_server.py @@ -61,7 +61,7 @@ def start_gunicorn(): cmd += log if DEBUG: cmd += " --reload" - p = subprocess.Popen(cmd, shell=True, stdout=sys.stdout, stderr=sys.stderr) + p = subprocess.call(cmd, shell=True, stdout=sys.stdout, stderr=sys.stderr) return p @@ -146,7 +146,6 @@ if __name__ == '__main__': choices=("all", "gunicorn", "celery", "beat"), help="The service to start", ) - print("开始执行") args = parser.parse_args() try: start_service(args.services)