Commit 7558c2b3 authored by ibuler's avatar ibuler

[Debug] debug print error

parent ddd18e10
...@@ -61,7 +61,7 @@ def start_gunicorn(): ...@@ -61,7 +61,7 @@ def start_gunicorn():
cmd += log cmd += log
if DEBUG: if DEBUG:
cmd += " --reload" 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 return p
...@@ -146,7 +146,6 @@ if __name__ == '__main__': ...@@ -146,7 +146,6 @@ if __name__ == '__main__':
choices=("all", "gunicorn", "celery", "beat"), choices=("all", "gunicorn", "celery", "beat"),
help="The service to start", help="The service to start",
) )
print("开始执行")
args = parser.parse_args() args = parser.parse_args()
try: try:
start_service(args.services) start_service(args.services)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment