aetherscale

[unmaintained] code for a cloud provider tutorial
Log | Files | Refs | README | LICENSE

commit bef23068b41f375d773ec41c988b820c5823ddfe
parent 976d262c28a3dc8fbdf6b05c0422f1296eecc8b1
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Sat,  6 Feb 2021 18:00:05 +0100

call app.run from server.py directly

Diffstat:
Maetherscale/api/rest.py | 5-----
Maetherscale/server.py | 2+-
2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/aetherscale/api/rest.py b/aetherscale/api/rest.py @@ -91,8 +91,3 @@ def vpn_info(vpn_name): return 'VPN does not exist', 404 return flask.jsonify(result) - - -def run(): - # TODO: Only needed for debugging, production applications must use WSGI - app.run() diff --git a/aetherscale/server.py b/aetherscale/server.py @@ -23,6 +23,6 @@ def main(): sys.exit(1) elif len(sys.argv) >= 2 and sys.argv[1] == 'http': - aetherscale.api.rest.run() + aetherscale.api.rest.app.run() else: aetherscale.api.broker.run()