Rensselaer Center for Open Source Software

Merge branch 'master' of github.com:Stonelinks/DaBuzz

6 files changed, 14 lines added, 6 lines removed

Changes

--- analysis/training-set/app-config.conf 7a8ff3f2eb6c911b98a6ae2b657b6e9a8ca33e13
+++ analysis/training-set/app-config.conf d2fb859c377f1a2694859aaba66310f748ece148
@@ -1,0 +1,4 @@
+[/]
+tools.staticdir.on: True
+tools.staticdir.dir: server.current_path + "/static"
+tools.staticdir.index: "index.html"
--- analysis/training-set/server.py 7a8ff3f2eb6c911b98a6ae2b657b6e9a8ca33e13
+++ analysis/training-set/server.py d2fb859c377f1a2694859aaba66310f748ece148
@@ -8,17 +8,18 @@
+current_path = os.path.dirname(os.path.abspath(__file__))
+
-  @cherrypy.expose
-  def index(self):
-    #return "Hello, world!"
-    current_path = os.path.dirname(os.path.abspath(__file__))
-    return serve_file(os.path.join(current_path, "static", "index.html"))
+  pass
+  cherrypy.config.update("./site-config.conf")
+  """
+  """
@@ -26,7 +27,7 @@
-  cherrypy.quickstart(root)
+  cherrypy.quickstart(root, '/', config="./app-config.conf")
--- analysis/training-set/site-config.conf 7a8ff3f2eb6c911b98a6ae2b657b6e9a8ca33e13
+++ analysis/training-set/site-config.conf d2fb859c377f1a2694859aaba66310f748ece148
@@ -1,0 +1,3 @@
+[global]
+server.socket_host: '0.0.0.0'
+server.socket_port: 8080
DaBuzz • 65 weeks ago