mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
gunicorn & wsgi config changes
This commit is contained in:
@@ -1,17 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import hyperglass
|
||||
from hyperglass.hyperglass import app
|
||||
import hyperglass.hyperglass
|
||||
|
||||
application = app
|
||||
application = hyperglass.hyperglass.app
|
||||
|
||||
hyperglass_root = os.path.dirname(hyperglass.__file__)
|
||||
static = os.path.join(hyperglass_root, "static")
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
hyperglass.render.css.renderTemplate()
|
||||
hyperglass.render.html.renderTemplate()
|
||||
application.run(static_folder=static)
|
||||
except:
|
||||
raise
|
||||
application.run(static_folder=static)
|
||||
|
||||
Reference in New Issue
Block a user