You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
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/g
install pip install gunicorn sudo aptitude install nginx cd /etc/nginx sudo mv nginx.conf nginx.conf.orig sudo vi nginx.conf nginx.confを以下のように ## worker=1, port=8000 user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 1024; accept_mutex off; # multi_accept on; } http { include /etc/nginx/mime.types; default_type application/oct
nginx と gunicorn + meinheld を組み合わせた時のメモ。 nginx はリバースプロキシとして gunicorn に飛ばし、gunicorn の worker として meinheld を使った。 環境は Fedora13。 nginx は yum でインストール。 /etc/nginx/conf.d/virtual.conf に以下を追加。 Green Unicorn - Deployment にあるのをほぼそのまま。 upstream app_server { server unix:/var/run/gunicorn/gunicorn.sock fail_timeout=0; # For a TCP configuration: #server 192.168.1.2:8000 fail_timeout=0; } server { listen 80 defa
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く