| @@ -4,7 +4,7 @@ | ||
| 4 | 4 |  | 
| 5 | 5 | # Django-related settings | 
| 6 | 6 | # the base directory (full path) | 
| 7 | -chdir = /home/diors/work/hanyuan | |
| 7 | +chdir = /home/paiai/work/hanyuan | |
| 8 | 8 | # Django's wsgi file | 
| 9 | 9 | module = hanyuan.wsgi | 
| 10 | 10 | # the virtualenv (full path) | 
| @@ -16,7 +16,7 @@ master = true | ||
| 16 | 16 | # maximum number of worker processes | 
| 17 | 17 | processes = 10 | 
| 18 | 18 | # the socket (use the full path to be safe | 
| 19 | -socket = /home/diors/work/hanyuan/hanyuan/deploy/hanyuan.sock | |
| 19 | +socket = /home/paiai/work/hanyuan/hanyuan/deploy/hanyuan.sock | |
| 20 | 20 | # ... with appropriate permissions - may be needed | 
| 21 | 21 | chmod-socket = 777 | 
| 22 | 22 | # clear environment on exit | 
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 |  | 
| 5 | 5 | # Django-related settings | 
| 6 | 6 | # the base directory (full path) | 
| 7 | -chdir = /home/diors/work/hanyuan | |
| 7 | +chdir = /home/paiai/work/hanyuan | |
| 8 | 8 | # Django's wsgi file | 
| 9 | 9 | module = hanyuan.wsgi | 
| 10 | 10 | # the virtualenv (full path) | 
| @@ -16,7 +16,7 @@ master = true | ||
| 16 | 16 | # maximum number of worker processes | 
| 17 | 17 | processes = 10 | 
| 18 | 18 | # the socket (use the full path to be safe | 
| 19 | -socket = /home/diors/work/hanyuan/hanyuan/deploy/hanyuan2.sock | |
| 19 | +socket = /home/paiai/work/hanyuan/hanyuan/deploy/hanyuan2.sock | |
| 20 | 20 | # ... with appropriate permissions - may be needed | 
| 21 | 21 | chmod-socket = 777 | 
| 22 | 22 | # clear environment on exit | 
| @@ -3,10 +3,10 @@ | ||
| 3 | 3 | # the upstream component nginx needs to connect to | 
| 4 | 4 |  upstream hanyuan { | 
| 5 | 5 | # Single Server | 
| 6 | - # server unix:///home/diors/work/hanyuan/hanyuan/deploy/hanyuan.sock; # for a file socket | |
| 6 | + # server unix:///home/paiai/work/hanyuan/hanyuan/deploy/hanyuan.sock; # for a file socket | |
| 7 | 7 | # Multi Server | 
| 8 | - # server unix:///home/diors/work/hanyuan/hanyuan/deploy/hanyuan.sock max_fails=0 weight=1; # for a file socket | |
| 9 | - # server unix:///home/diors/work/hanyuan/hanyuan/deploy/hanyuan2.sock max_fails=0 weight=1; # for a file socket | |
| 8 | + # server unix:///home/paiai/work/hanyuan/hanyuan/deploy/hanyuan.sock max_fails=0 weight=1; # for a file socket | |
| 9 | + # server unix:///home/paiai/work/hanyuan/hanyuan/deploy/hanyuan2.sock max_fails=0 weight=1; # for a file socket | |
| 10 | 10 | server 127.0.0.1:8888; # for a web port socket (we'll use this first) | 
| 11 | 11 | } | 
| 12 | 12 |  | 
| @@ -27,23 +27,23 @@ server { | ||
| 27 | 27 |  | 
| 28 | 28 | # JS接口安全域名 & 业务域名 验证 | 
| 29 | 29 |      location /xxx.txt { | 
| 30 | - alias /home/diors/work/hanyuan/docs/we/xxx.txt; | |
| 30 | + alias /home/paiai/work/hanyuan/docs/we/xxx.txt; | |
| 31 | 31 | } | 
| 32 | 32 |  | 
| 33 | 33 | # Django media | 
| 34 | 34 |      location /media  { | 
| 35 | - alias /home/diors/work/hanyuan/media; # your Django project's media files - amend as required | |
| 35 | + alias /home/paiai/work/hanyuan/media; # your Django project's media files - amend as required | |
| 36 | 36 | } | 
| 37 | 37 |  | 
| 38 | 38 |      location /static { | 
| 39 | - alias /home/diors/work/hanyuan/collect_static; # your Django project's static files - amend as required | |
| 39 | + alias /home/paiai/work/hanyuan/collect_static; # your Django project's static files - amend as required | |
| 40 | 40 | } | 
| 41 | 41 |  | 
| 42 | 42 | # Finally, send all non-media requests to the Django server. | 
| 43 | 43 |      location / { | 
| 44 | 44 | # uwsgi_pass hanyuan; | 
| 45 | 45 | proxy_pass http://hanyuan; | 
| 46 | - include /home/diors/work/hanyuan/hanyuan/deploy/uwsgi_params; # the uwsgi_params file you installed | |
| 46 | + include /home/paiai/work/hanyuan/hanyuan/deploy/uwsgi_params; # the uwsgi_params file you installed | |
| 47 | 47 | } | 
| 48 | 48 | } | 
| 49 | 49 |  | 
| @@ -75,22 +75,22 @@ server { | ||
| 75 | 75 |  | 
| 76 | 76 | # JS接口安全域名 & 业务域名 验证 | 
| 77 | 77 |      location /xxx.txt { | 
| 78 | - alias /home/diors/work/hanyuan/docs/we/xxx.txt; | |
| 78 | + alias /home/paiai/work/hanyuan/docs/we/xxx.txt; | |
| 79 | 79 | } | 
| 80 | 80 |  | 
| 81 | 81 | # Django media | 
| 82 | 82 |      location /media  { | 
| 83 | - alias /home/diors/work/hanyuan/media; # your Django project's media files - amend as required | |
| 83 | + alias /home/paiai/work/hanyuan/media; # your Django project's media files - amend as required | |
| 84 | 84 | } | 
| 85 | 85 |  | 
| 86 | 86 |      location /static { | 
| 87 | - alias /home/diors/work/hanyuan/collect_static; # your Django project's static files - amend as required | |
| 87 | + alias /home/paiai/work/hanyuan/collect_static; # your Django project's static files - amend as required | |
| 88 | 88 | } | 
| 89 | 89 |  | 
| 90 | 90 | # Finally, send all non-media requests to the Django server. | 
| 91 | 91 |      location / { | 
| 92 | 92 | # uwsgi_pass hanyuan; | 
| 93 | 93 | proxy_pass http://hanyuan; | 
| 94 | - include /home/diors/work/hanyuan/hanyuan/deploy/uwsgi_params; # the uwsgi_params file you installed | |
| 94 | + include /home/paiai/work/hanyuan/hanyuan/deploy/uwsgi_params; # the uwsgi_params file you installed | |
| 95 | 95 | } | 
| 96 | 96 | } | 
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | [program:hanyuan] | 
| 2 | -command=/home/diors/env/bin/uwsgi --ini /home/diors/work/hanyuan/hanyuan/deploy/hanyuan.ini | |
| 2 | +command=/home/paiai/envs/hanyuan/bin/uwsgi --ini /home/paiai/work/hanyuan/hanyuan/deploy/hanyuan.ini | |
| 3 | 3 | autostart=true | 
| 4 | 4 | autorestart=true | 
| 5 | 5 | startretries=3 | 
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | [program:hanyuan2] | 
| 2 | -command=/home/diors/env/bin/uwsgi --ini /home/diors/work/hanyuan/hanyuan/deploy/hanyuan2.ini | |
| 2 | +command=/home/paiai/envs/hanyuan/bin/uwsgi --ini /home/paiai/work/hanyuan/hanyuan/deploy/hanyuan2.ini | |
| 3 | 3 | autostart=true | 
| 4 | 4 | autorestart=true | 
| 5 | 5 | startretries=3 | 
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | [program:pollqueue] | 
| 2 | -command=/home/diors/env/bin/python /home/diors/work/hanyuan/manage.py poll_queue | |
| 2 | +command=/home/paiai/envs/hanyuan/bin/python /home/paiai/work/hanyuan/manage.py poll_queue | |
| 3 | 3 | autostart=true | 
| 4 | 4 | autorestart=true | 
| 5 | 5 | startretries=3 | 
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | [program:rlistlog] | 
| 2 | -command=/home/diors/env/bin/python /home/diors/work/hanyuan/manage.py rlistlog --key=django:logit:hanyuan --filename=/tmp/hanyuan.logit.log | |
| 2 | +command=/home/paiai/envs/hanyuan/bin/python /home/paiai/work/hanyuan/manage.py rlistlog --key=django:logit:hanyuan --filename=/tmp/hanyuan.logit.log | |
| 3 | 3 | autostart=true | 
| 4 | 4 | autorestart=true | 
| 5 | 5 | startretries=3 |