Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Details
- UBUNTU 14.04
- VirtualEnviroment with Python 3.4, Django, Gunicorn
- Django project path /taobao/app
- VirtualEnv path /taobao/
- # GUNICORN CONFIG FILE | /etc/init/gunicorn.conf
- start on runlevel [2345]
- stop on runlevel [!2345]
- respawn
- setuid www-data
- setgid www-data
- chdir /taobao/
- exec bin/gunicorn --workers 3 --bind unix:/taobao/app/taobao.sock taobao.wsgi:application
- # NGinx | /etc/nginx/sites-available/taobao
- server {
- listen 80 default_server;
- server_name 128.199.175.51;
- location = /favicon.ico { access_log off; log_not_found off; }
- location /static/ {
- root /taobao/app/general;
- }
- location / {
- include proxy_params;
- proxy_pass http://unix:/var/run/taobao.sock;
- }
- }
- # Nginx error log
- connect() to unix:/var/run/taobao.sock failed (111: Connection refused) while connecting to upstream, client:
Add Comment
Please, Sign In to add comment