mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
wsgi
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<link rel="icon" type="image/png" sizes="16x16" href="static/images/favicon/favicon-16x16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="static/images/favicon/favicon-16x16.png">
|
||||||
<link rel="manifest" href="static/images/favicon/site.webmanifest">
|
<link rel="manifest" href="static/images/favicon/site.webmanifest">
|
||||||
<link rel="mask-icon" href="static/images/favicon/safari-pinned-tab.svg" color="#ff5e5b">
|
<link rel="mask-icon" href="static/images/favicon/safari-pinned-tab.svg" color="#ff5e5b">
|
||||||
<link rel="shortcut icon" href="static/images/favicon.ico">
|
<link rel="shortcut icon" href="static/images/favicon/favicon.ico">
|
||||||
<meta name="msapplication-TileColor" content="#330036">
|
<meta name="msapplication-TileColor" content="#330036">
|
||||||
<meta name="msapplication-config" content="static/images/favicon/browserconfig.xml">
|
<meta name="msapplication-config" content="static/images/favicon/browserconfig.xml">
|
||||||
<meta name="theme-color" content="#330036">
|
<meta name="theme-color" content="#330036">
|
||||||
@@ -28,7 +28,6 @@
|
|||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="static/js/jquery-3.4.0.min.js"></script>
|
<script src="static/js/jquery-3.4.0.min.js"></script>
|
||||||
<script src="static/js/hyperglass.js"></script>
|
<script src="static/js/hyperglass.js"></script>
|
||||||
<!-- <script src="static/js/fontawesome-free-5.8.1-web/js/all.js"></script> -->
|
|
||||||
{% if google_analytics|length > 0 %}
|
{% if google_analytics|length > 0 %}
|
||||||
<!--Google Analytics-->
|
<!--Google Analytics-->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analytics }}"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analytics }}"></script>
|
||||||
|
@@ -225,6 +225,7 @@ var submitForm = function() {
|
|||||||
}
|
}
|
||||||
else if (xhr.status == 200){
|
else if (xhr.status == 200){
|
||||||
console.log(xhr.status, 'success')
|
console.log(xhr.status, 'success')
|
||||||
|
var output = document.getElementById('output')
|
||||||
output.innerHTML =
|
output.innerHTML =
|
||||||
'<br>' +
|
'<br>' +
|
||||||
'<div class="content">' +
|
'<div class="content">' +
|
||||||
|
@@ -1,7 +1,12 @@
|
|||||||
|
import os
|
||||||
|
import hyperglass
|
||||||
from hyperglass.hyperglass import app
|
from hyperglass.hyperglass import app
|
||||||
|
|
||||||
application = app
|
application = app
|
||||||
|
|
||||||
|
hyperglass_root = os.path.dirname(hyperglass.__file__)
|
||||||
|
static = os.path.join(hyperglass_root, "static")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
application.renderCSS()
|
application.renderCSS()
|
||||||
application.run()
|
application.run(static_folder=static)
|
||||||
|
17
manage.py
17
manage.py
@@ -34,20 +34,3 @@ def testserver():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
||||||
# for arg in sys.argv:
|
|
||||||
# if arg == "clearcache":
|
|
||||||
# try:
|
|
||||||
# hyperglass.hyperglass.app.clearcache()
|
|
||||||
# logger.info("Successfully cleared cache.")
|
|
||||||
# except:
|
|
||||||
# raise
|
|
||||||
# logger.error("Failed to clear cache.")
|
|
||||||
# elif arg == "test":
|
|
||||||
# try:
|
|
||||||
# render.css.renderTemplate()
|
|
||||||
# app.run(host="0.0.0.0", debug=True, port=5000)
|
|
||||||
# logger.error("Started test server.")
|
|
||||||
# except:
|
|
||||||
# logger.error("Failed to start test server.")
|
|
||||||
# raise
|
|
||||||
|
Reference in New Issue
Block a user