From 0bef0e0edcd20ff486fa9f6ae1ab819ba27d24f3 Mon Sep 17 00:00:00 2001 From: Matt Prahl Date: Fri, 12 Aug 2016 09:23:01 -0400 Subject: [PATCH] Adds debug option to runssl function --- Vagrantfile | 2 +- manage.py | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index b610908c..a6a43800 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -15,5 +15,5 @@ Vagrant.configure("2") do |config| config.vm.synced_folder "./", "/opt/fm-orchestrator/src" config.vm.network "forwarded_port", guest: 5000, host: 5000 config.vm.provision "shell", inline: $script - config.vm.provision :shell, inline: "cd /opt/fm-orchestrator/src && python manage.py runssl &", run: "always" + config.vm.provision :shell, inline: "cd /opt/fm-orchestrator/src && python manage.py runssl --debug &", run: "always" end diff --git a/manage.py b/manage.py index 18207734..3862a2ee 100644 --- a/manage.py +++ b/manage.py @@ -128,22 +128,17 @@ def upgradedb(): @manager.command -def runssl(host=None, port=None): +def runssl(host=conf.host, port=conf.port, debug=False): """ Runs the Flask app with the HTTPS settings configured in config.py """ - if not host: - host = conf.host - - if not port: - port = conf.port - logging.info('Starting Rida') ssl_ctx = _establish_ssl_context() app.run( host=host, port=port, request_handler=rida.auth.ClientCertRequestHandler, - ssl_context=ssl_ctx + ssl_context=ssl_ctx, + debug=debug ) if __name__ == "__main__":