I was reading this
http://blog.zacharyvoase.com/2010-03-05-deployment-with-uwsgi-and-nginx
and I think it will work with web2py with two changes:
1)
cd web2py
cp wsgihandler.py wsgi.py
2)
In step 3 replace lines 29-57 with
<begin>
upstream web2py {
ip_hash;
server unix:sock/uwsgi.sock;
}
server {
listen 80;
server_name example.com;
charset utf-8;
location ~ /(.*)/static/ {
alias PROJECT_ROOT/applications/$1/static/
}
location / {
uwsgi_pass web2py;
include uwsgi_params;
}
}
</end>
$PROJECT_ROOT is your web2py folder
If you get a chance to try it, would you post a slice about it?
Massimo
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.