Alright, I wrote this up as a guide (to help others in same
situation), so tell me if it's right or wrong:

Go to https://my.webfaction.com/applications and add this as an
application, keep note of port for below (replace "yourporthere" with
it):

$ curl http://projects.unbit.it/downloads/uwsgi-1.2.3.tar.gz >
uwsgi-1.2.3.tar.gz
$ tar xvzf uwsgi-1.2.3.tar.gz
$ cd uwsgi-1.2.3
$ python2.7 uwsgiconfig.py --build
$ mv uwsgi ~/bin
$ cd ..
$ rm -r uwsgi-1.2.3 uwsgi-1.2.3.tar.gz
$ wget <my private bitbucket URL with latest trunk in a .zip>
$ unzip web2py_src.zip
$ python2.7 web2py/web2py.py
$ mkdir ~/tmp
$ uwsgi --protocol=http --socket 127.0.0.1:yourporthere --pythonpath
~/web2py --module wsgihandler -d ~/tmp/uwsgi.log -t 20 --async 24
--ugreen --limit-as 64 -r --no-orphans -M -p 1 --touch-reload
~/tmp/uwsgireload.txt --reload-on-rss 50
$ nano ~/tmp/uwsgireload.txt
Paste this into it then save:
[utils]
ps -u fermer -o rss,command

Reply via email to