changed route for easy deploy of website

This commit is contained in:
ori
2019-08-13 13:07:18 -07:00
parent e53b216eeb
commit 42b37eba41
12 changed files with 3 additions and 3 deletions

View File

@@ -15,12 +15,12 @@ class ChameleonApplication(tornado.web.Application):
(r"/", MainHandler),
(r"/websocket", ChameleonWebSocket),
(r"/(.*)", tornado.web.StaticFileHandler,
{"path": r"{0}".format(os.path.join(os.path.dirname(__file__), "static"))}),
{"path": r"{0}".format(os.path.join(os.path.dirname(__file__), "site"))}),
]
settings = dict({
"template_path": os.path.join(os.path.dirname(__file__), "templates"),
"static_path": os.path.join(os.path.dirname(__file__), "static"),
"template_path": os.path.join(os.path.dirname(__file__), "site"),
"static_path": os.path.join(os.path.dirname(__file__), "site"),
"debug": True
}
)

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 542 KiB

After

Width:  |  Height:  |  Size: 542 KiB