Virtualenv
Z Varhoo
(Rozdíly mezi verzemi)
(Založena nová stránka: Init project's space for Django application cd /var/www/projects/ virtualenv prod source prod/bin/activate) |
|||
Řádka 4: | Řádka 4: | ||
virtualenv prod |
virtualenv prod |
||
source prod/bin/activate |
source prod/bin/activate |
||
+ | |||
+ | |||
+ | Deafultní nastavení /etc/uwsgi/config.xml |
||
+ | |||
+ | <varhoo> |
||
+ | <uwsgi id="1"> |
||
+ | <pythonpath>/var/projects/prod</pythonpath> |
||
+ | <master/> |
||
+ | <no-orphans/> |
||
+ | <processes>1</processes> |
||
+ | <optimize>0</optimize> |
||
+ | <home>/var/projects/prod</home> |
||
+ | <limit-as>128</limit-as> |
||
+ | <chmod-socket>660</chmod-socket> |
||
+ | <uid>administration</uid> |
||
+ | <gid>webusers</gid> |
||
+ | <pidfile>/var/projects/pid/admin.pid</pidfile> |
||
+ | <http>localhost:8002</http> |
||
+ | <wsgi-file>/var/projects/prod/vhm0/server/wsgi.py</wsgi-file> |
||
+ | <daemonize>/var/projects/log/admin.log</daemonize> |
||
+ | <chdir>/var/projects/prod/vhm0/server/</chdir> |
||
+ | </uwsgi> |
||
+ | </varhoo> |
Verze z 17. 9. 2013, 15:36
Init project's space for Django application
cd /var/www/projects/ virtualenv prod source prod/bin/activate
Deafultní nastavení /etc/uwsgi/config.xml
<varhoo> <uwsgi id="1"> <pythonpath>/var/projects/prod</pythonpath> <master/> <no-orphans/> <processes>1</processes> <optimize>0</optimize> <home>/var/projects/prod</home> <limit-as>128</limit-as> <chmod-socket>660</chmod-socket> <uid>administration</uid> <gid>webusers</gid> <pidfile>/var/projects/pid/admin.pid</pidfile> <http>localhost:8002</http> <wsgi-file>/var/projects/prod/vhm0/server/wsgi.py</wsgi-file> <daemonize>/var/projects/log/admin.log</daemonize> <chdir>/var/projects/prod/vhm0/server/</chdir> </uwsgi> </varhoo>