aboutsummaryrefslogtreecommitdiffstats
path: root/python/flask-run.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/flask-run.py')
-rw-r--r--python/flask-run.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/flask-run.py b/python/flask-run.py
new file mode 100644
index 00000000..7fc1a02c
--- /dev/null
+++ b/python/flask-run.py
@@ -0,0 +1,9 @@
+import sys
+import importlib
+
+if len(sys.argv)<2:
+ print("please enter the name of the Flask app")
+ print("currently Dawn, task_server or risk_insight")
+else:
+ mod = importlib.import_module(sys.argv[1])
+ mod.app.run(debug=True)