トップ 一覧 検索 ヘルプ RSS ログイン

劇場

劇場>>flask+Gunicorn+gevent+nginxの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
*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'