parent
3532dcc11f
commit
4f25c55efc
|
@ -20,4 +20,4 @@
|
|||
#
|
||||
###############################################################################
|
||||
|
||||
import pvcapid.api
|
||||
import pvcapid.Daemon
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# api.py - PVC HTTP API interface
|
||||
# Daemon.py - PVC HTTP API daemon
|
||||
# Part of the Parallel Virtual Cluster (PVC) system
|
||||
#
|
||||
# Copyright (C) 2018-2020 Joshua M. Boniface <joshua@boniface.me>
|
||||
|
@ -5612,11 +5612,10 @@ api.add_resource(API_Provisioner_Status_Element, '/provisioner/status/<task_id>'
|
|||
##########################################################
|
||||
# Entrypoint
|
||||
##########################################################
|
||||
if __name__ == '__main__':
|
||||
if config['debug']:
|
||||
if config['debug']:
|
||||
# Run in Flask standard mode
|
||||
app.run(config['listen_address'], config['listen_port'])
|
||||
else:
|
||||
else:
|
||||
if config['ssl_enabled']:
|
||||
# Run the WSGI server with SSL
|
||||
http_server = gevent.pywsgi.WSGIServer(
|
Loading…
Reference in New Issue