- sudo apt-get install libevent-1.4-2
- sudo apt-get install libevent-dev
pipとeasy_installの使い分けとかよく分かってません
- pip install gunicorn
- easy_install greenlet
- easy_install gevent
アプリのrootで
gunicorn -c gunicorn.py file:app
(file.pyでapp.runする場合という感じかな)
gunicorn.pyで設定
bind = '0.0.0.0:8080'
workers = 5
backlog = 2048
worker_class = 'gevent'
debug = True
daemon = True
pidfile = '/tmp/gunicorn.pid'
logfile = '/tmp/gunicorn.log'