On Fri, 2011-04-15 at 14:18:55 +0200, Vincenzo Ampolo wrote:
> I'm trying to set up uwsgi to work with pyramid. For now i ended up with
> a uwsgi + pyramid setup working invoking uwsgi in this way:
> 
> goshawk@earth:~/Projects/milo/milo_app$ uwsgi --http 127.0.0.1:8080
> --ini-paste development.ini
> 
> where in development.ini there is :
> 
> [uwsgi]
> socket = /tmp/milo_uwsgi.sock
> master = true
> processes = 1
> wsgi-file = pyramid.wsgi
> 
> and pyramid.wsgi is:
> 
> from pyramid.paster import get_app
> application = get_app(
>   'development.ini', 'main')
> 
> Is there a way to make uswgi work without the pyramid.wsgi file ?
> 
> I've also tried to make it works with latest cherokee using the .ini
> file for the uwsgi configuration but i receive an "application not
> found" error.
> 
> Did anybody go through this ?

I haven't done this with Pyramid (I'm quite aloof from these things at
the moment), but when deploying Pylons app, I've used --ini-paste option
and placed [uwsgi] section inside Pylons .ini file.  Thus you can get
away with only using one .ini file (no .wsgi files needed).  Not sure if
Pyramid is still using Paste for deployment, but if it is, --ini-paste
should work.

-- 
Audrius Kažukauskas

Attachment: pgp18jhqzk2oI.pgp
Description: PGP signature

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to