web2py.py is the main wrapper for presenting the widget and starting the rocket webserver (fine for development and small-sized intranets). In production, web2py.py is not used, because the actual web application doesn't need a widget and runs on a separate "production-ready" webserver (actually, it runs behind a webserver (in your case, nginx), that communicates with uwsgi that is the daemon executing the python code and passing to the webserver the response in "wsgi format").
There are handlers for practically all webservers (look at the /handlers dir), and in your particular case (uwsgi daemon "mode"), the code gets executed in wsgihandler.py, that in turns calls gluon/main.py, the real "executor" that "holds" all the logic for executing merely the web application, without the "bells and whistles" of the "development mode". Sorry for the multiple quotes ^_^ If anything remains unclear, please ask. On Tuesday, October 1, 2013 5:47:25 PM UTC+2, Jayadevan M wrote: > > Hi, > I followed the deployment recipe posted here - > > https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-centos64.sh > and it works fine. The thing is, I don't get how web2py in actually > getting initialized. If I check the process tree, I see > nginx 3:18 \_ /opt/python/bin/uwsgi --ini web2py.ini > nginx 0:00 \_ /opt/python/bin/uwsgi --ini web2py.ini > nginx 0:00 \_ /opt/python/bin/uwsgi --ini web2py.ini > nginx 0:00 \_ /opt/python/bin/uwsgi --ini web2py.ini > nginx 0:00 \_ /opt/python/bin/uwsgi --ini web2py.ini > web2py.py is not getting called anywhere. Could someone please explain the > execution sequence? > Thanks, > Jayadevan > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

