Disable debugging of API
This commit is contained in:
@ -967,7 +967,4 @@ else:
|
|||||||
# Run the ?WSGI server without SSL
|
# Run the ?WSGI server without SSL
|
||||||
http_server = gevent.pywsgi.WSGIServer((config['listen_address'], config['listen_port']), api)
|
http_server = gevent.pywsgi.WSGIServer((config['listen_address'], config['listen_port']), api)
|
||||||
|
|
||||||
if os.environ['PVC_DEBUG']:
|
|
||||||
api.run(host=config['listen_address'], port=config['listen_port'])
|
|
||||||
else:
|
|
||||||
http_server.serve_forever()
|
http_server.serve_forever()
|
||||||
|
Reference in New Issue
Block a user