mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
18 lines
320 B
Plaintext
18 lines
320 B
Plaintext
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):
|
|
import hyperglass
|
|
|
|
hyperglass.render.css.renderTemplate()
|
|
print(1)
|