Skip to content

Commit 5d03062

Browse files
committed
add gunicorn config
1 parent a33b729 commit 5d03062

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

gunicorn.conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os
2+
from gevent import monkey
3+
4+
monkey.patch_all()
5+
import multiprocessing
6+
7+
bind = "0.0.0.0:5000"
8+
pidfile = "/tmp/gunicorn.pid"
9+
accesslog = "./logs/gunicorn.log"
10+
workers = multiprocessing.cpu_count() * 2 + 1
11+
worker_class = "gevent"
12+
daemon = True
13+
debug = False

0 commit comments

Comments
 (0)