Il giorno 21/lug/2011, alle ore 17:14, Manel Villar ha scritto: > I've tried to follow: > http://stackoverflow.com/questions/5131459/deploying-flask-on-cherokee-and-uwsgi > > uwsgi.xml > > <uwsgi> > <chdir>/home/manel/projects/virtualenvs/nas-backend/nas_backend</chdir> > > <wsgi-file>/home/manel/projects/virtualenvs/nas-backend/nas_backend/runserver.py</wsgi-file> > <app mountpoint='/nasbackend/' > > <script>runserver</script> > </app> > <callable>app</callable> > > <socket>/tmp/foo.sock</socket> > <chmod-socket>666</chmod-socket> > > <master /> > <processes>1</processes> > > <disable-logging /> > > <vacuum /> > <no-orphans /> > </uwsgi> > > And the command line: > > /home/manel/projects/virtualenvs/nas-backend/bin/uwsgi -x > /home/manel/projects/virtualenvs/nas-backend/nas_backend/uwsgi.xml -H > /home/manel/projects/virtualenvs/nas-backend > >
I do not understand who create a server on port 5000, maybe the /home/manel/projects/virtualenvs/nas-backend/nas_backend/runserver.py? In such case you are not using uWSGI, as your script is taking control of the environment :) i suggest you to start with a simple django config: http://projects.unbit.it/uwsgi/wiki/Quickstart and after that you can start experimenting with other options (and finally with cherokee for the production part). -- Roberto De Ioris http://unbit.it _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
