added gunicorn start

This commit is contained in:
Galonza Peter
2021-10-18 02:24:09 +03:00
parent ea0229a8ab
commit f0f9ac92e6
4 changed files with 42 additions and 22 deletions

6
src/gunicorn.conf.py Normal file
View File

@@ -0,0 +1,6 @@
import dashboard
app_host, app_port = dashboard.get_host_bind()
bind = f"{app_host}:{app_port}"
daemon = True
pidfile = './gunicorn.pid'