mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-27 02:01:40 +00:00
changed route for easy deploy of website
This commit is contained in:
@@ -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
|
||||
}
|
||||
)
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 542 KiB After Width: | Height: | Size: 542 KiB |
Reference in New Issue
Block a user