Thanks Vasile for this instructions. Excuse my ignorance but I know very little about how uwsgi works so I have some further questions (please see below):
[web2py] > wget http://www.web2py.com/examples/static/web2py_src.zip > unzip web2py_src.zip > python2.7 web2py.py #seems needed before using it > Do I stop this process again before proceeding? [uwsgi] > wget http://projects.unbit.it/downloads/uwsgi-0.9.8.3.tar.gz > tar xvzf uwsgi-0.9.8.3.tar.gz > cd uwsgi-0.9.8.3 > /home/yourname/bin/python2.7 uwsgiconfig.py --build > mv uwsgi /home/yourname/bin > uwsgi --protocol=http --socket 127.0.0.1:your_custom_port_number > --pythonpath /home/yourname/web2py --module wsgihandler -d > /home/yourname/tmp/uwsgi.log -t 20 --async 24 --ugreen --limit-as 64 -r > --no-orphans -M -p 1 --touch-reload /home/yourname/tmp/uwsgireload.txt > --reload-on-rss 50 > touch /home/yourname/tmp/uwsgireload.txt > > In this configuration the socket refers to the localhost. Why? What determines the port number? How does this localhost: socket relates to the normal http/https ports available to the outside cllients? How do I stop the uwsgi-process to change the configuration? Is there a configuration file that I can use for this purpose? Where and what is the format? [utils] > ps -u fermer -o rss,command > > > notes/comments: > > - --protocol=http means that you don't need another webserver > - it is still nginx + uwsgi because you have webfaction nginx instance > in front > > So how does the communication process between uwsgi and nginx takes place in this setup? > > - I use "touch /home/yourname/tmp/uwsgireload.txt" to reload uwsgi > server, it is useful when I change routes.py file, or adding some modules > in > site-packages folder > - -M -p 1 will generate 2 processes, a master process and a slave one > > > You say -M -p 1 will generate two processes and also that the -p-configuration * --limit-as will be the total memory consumption allowed. Does that means -p 1 * 64Mb will have 128Mb or 64Mb as limit? Regards Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His divine power has given us everything we need for life and godliness through the full knowledge of the one who called us by his own glory and excellence. 2 Pet. 1:2b,3a