daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest May 23rd, 2016 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Details
  2. UBUNTU 14.04
  3. VirtualEnviroment with Python 3.4, Django, Gunicorn
  4. Django project path /taobao/app
  5. VirtualEnv path /taobao/
  6.  
  7. # GUNICORN CONFIG FILE | /etc/init/gunicorn.conf
  8. start on runlevel [2345]
  9. stop on runlevel [!2345]
  10.  
  11. respawn
  12. setuid www-data
  13. setgid www-data
  14. chdir /taobao/
  15. exec bin/gunicorn --workers 3 --bind unix:/taobao/app/taobao.sock taobao.wsgi:application
  16.  
  17.  
  18.  
  19. # NGinx | /etc/nginx/sites-available/taobao
  20.  
  21. server {
  22.     listen 80 default_server;
  23.     server_name 128.199.175.51;
  24.  
  25.     location = /favicon.ico { access_log off; log_not_found off; }
  26.     location /static/ {
  27.         root /taobao/app/general;
  28.     }
  29.     location / {
  30.         include proxy_params;
  31.         proxy_pass http://unix:/var/run/taobao.sock;
  32.     }
  33. }
  34.  
  35. # Nginx error log
  36.  connect() to unix:/var/run/taobao.sock failed (111: Connection refused) while connecting to upstream, client:
RAW Paste Data
Top