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
2019-06-07 18:33:49 -07:00

24 lines
457 B
Plaintext

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