> I am trying to get dynamic apps running in virtualenv's. > I've followed the direction here: > http://projects.unbit.it/uwsgi/wiki/DynamicVirtualenv > > Currently I'm running a very simple test case behind cherokee. > I've created my virtualenv as such: virtualenv /opt/uwsgi/apps/test > I created a simple wsgi script in > /opt/uwsgi/apps/test/lib/python2.6/site-packages/testapp.py (per > http://answerpot.com/showthread.php?662402-Virtual+Hosting+question): > > def application(environ, start_response): > start_response('200 OK', [('Content-Type', 'text/plain')]) > yield 'Hello There!!!\n' > > > My XML config is: > > <uwsgi> > <pidfile>/var/run/uwsgi.pid</pidfile> > <socket>/tmp/uwsgi.sock</socket> > <chmod-socket>666</chmod-socket> > <no-site/> > <daemonize>/var/log/uwsgi.log</daemonize> > <processes>4</processes> > <master/> > <harakiri>20</harakiri> > <limit-as>128</limit-as> > <listen>128</listen> > <socket-timeout>10</socket-timeout> > <buffer-size>8192</buffer-size> > <max-vars>128</max-vars> > <single-interpreter/>
Remove single-interpreter directive here, as dynamic apps are based on multiple interpreters (P.S. thanks for having enabled DEBUG before asking for help, this makes easier to catch problems) -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
