Skip to content
Snippets Groups Projects
Commit df71ede4 authored by Daniel Brown's avatar Daniel Brown
Browse files

moving web interface init to after git pulls of repos

parent ddac2012
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,6 @@ def start(instance_path,port=5000, debug=True, ip="0.0.0.0", git_bin="/usr/bin/g
print app.instance_path, instance_path
raise Exception("Instance path of Flask app didn't match the requested value")
# load up the actual interface code
import pykat.testing.web.web_interface
# need local copy of src
if not os.path.exists(os.path.join(app.instance_path,"finesse_src")):
print "finesse src folder didn't exist, cloning now..."
......@@ -44,6 +41,9 @@ def start(instance_path,port=5000, debug=True, ip="0.0.0.0", git_bin="/usr/bin/g
print "finesse test folder didn't exist, cloning now..."
utils.git(["clone","git://gitmaster.atlas.aei.uni-hannover.de/finesse/test.git","finesse_test"])
# load up the actual interface code
import pykat.testing.web.web_interface
app.secret_key = os.urandom(24)
app.run(debug=debug, port=int(port), host=ip,use_reloader=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment