Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix pyenv in uwsgi conf & add memory usage

  • Loading branch information...
commit fb163bd5b434ea65b20e9f7b22bc601be5dc72e3 1 parent 1cedf7c
@fyears authored
View
3  conf/init.uwsgi
@@ -5,5 +5,4 @@ stop on runlevel [!2345]
respawn
exec uwsgi \
---emperor /home/pyconf/uwsgiconf/ \
---emperor-tyrant
+--emperor /home/pyconf/uwsgiconf/
View
4 examples/www.fyears.org.uwgi.ini
@@ -6,7 +6,7 @@ socket = /tmp/%n.sock
master = 1
threads = 40
processes = 4
-pythonpath = /home/wwwroot/www.fyears.org/pyenv
+virtualenv = /home/wwwroot/www.fyears.org/pyenv
; the path to the virtualenv
chdir = /home/wwwroot/www.fyears.org
; the folder of your app
@@ -20,3 +20,5 @@ uid = www
; you are encouraged to set this if you use socket, though it's not necessarily required if you've set chmod-socket
sid = www
; you are encouraged to set this if you use socket, though it's not necessarily required if you've set chmod-socket
+limit-as 256
+; it's recommended to set a limit memory usage
View
4 vhost4py.sh
@@ -188,7 +188,7 @@ socket = /tmp/$domain.uwsgi.sock
master = 1
threads = 40
processes = 4
-pythonpath = $vhostdir/pyenv
+virtualenv = $vhostdir/pyenv
; the path to the virtualenv
chdir = /home/wwwroot/$domain
; the folder of your app
@@ -202,6 +202,8 @@ uid = www
; you should always set this if you use socket, though it's not necessarily required if you've set chmod-socket
sid = www
; you should always set this if you use socket, though it's not necessarily required if you've set chmod-socket
+limit-as 256
+; it's recommended to set a limit memory usage
eof
chown www:www /home/pyconf/uwsgiconf/$domain.uwsgi.ini
Please sign in to comment.
Something went wrong with that request. Please try again.