1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads-hyperglass/hyperglass/gunicorn_config.py.example

24 lines
457 B
Plaintext
Raw Normal View History

"""
https://github.com/checktheroads/hyperglass
Guncorn configuration
"""
2019-05-11 23:22:27 -07:00
import multiprocessing
command = "/usr/local/bin/gunicorn"
2019-05-28 14:14:42 -07:00
pythonpath = "/opt/hyperglass"
2019-05-11 23:22:27 -07:00
bind = "[::1]:8001"
2019-05-28 14:14:42 -07:00
preload = True
workers = multiprocessing.cpu_count() * 2
2019-05-11 23:22:27 -07:00
user = "www-data"
2019-05-11 23:28:13 -07:00
timeout = 60
2019-05-28 14:14:42 -07:00
keepalive = 10
def on_starting(server):
"""Renders CSS templates at initial code execution with single worker"""
2019-05-28 14:14:42 -07:00
import hyperglass
hyperglass.render.css()
2019-05-28 14:14:42 -07:00
print(1)