Alright, I wrote this up as a guide (to help others in same situation):

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

#######

Unfortunately I ran into one issue, here is my log output: $ cat 
~/tmp/uwsgi.log
*** Starting uWSGI 1.2.3 (64bit) on [Tue Jul  3 10:48:32 2012] ***
compiled with version: 4.4.6 20110731 (Red Hat 4.4.6-3) on 03 July 2012 
09:59:58
detected number of CPU cores: 8
current working directory: /home/myusernamehere
detected binary path: /home/myusernamehere/bin/uwsgi
limiting address space of processes...
your process address space limit is 67108864 bytes (64 MB)
your memory page size is 4096 bytes
 *** WARNING: you have enabled harakiri without post buffering. Slow upload 
could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 4096
async fd table size: 4096
allocated 24960 bytes (24 KB) for 24 cores per worker.
lock engine: pthread robust mutexes
initializing 24 uGreen threads with stack size of 262144 (256 KB)
mprotect(): Invalid argument [plugins/ugreen/ugreen.c line 109]

Any ideas on how I should proceed?

(Nothing is running on that port number)

Thanks for all suggestions,

Alec Taylor

Reply via email to