Re: mod_wsgi_app in Silva buildout
Sylvain Viollon <[email protected]> Mon, 4 Jul 2011 19:06:48 +0200
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Organization | Infrae |
| Message-ID | <[email protected]> |
On Mon, 4 Jul 2011 16:29:12 +0000 "Luthiger Stoll Benno" <[email protected]> wrote: > Hello devs > Hello, > I want to use Silva 2.3 behind Apache using mod_wsgi. > To do this, I have to create the wsgi app > silva/parts/mod_wsgi_app/wsgi. To create this app using buildout, I > had to modify the profiles/base.cfg. In this configuration, there's a > part defined as: === > [mod_wsgi_app] > recipe = collective.recipe.modwsgi > eggs = ${wsgi:eggs} > config-file = ${deploy.ini:output} > === > > However, I don't see this part called. [...] > > Only after I've added mod_wsgi_app to the parts section, buildout is > creating the wsgi app: === [...] > === > > Is this the intended behavior? > Yes that was intended in the past. The fact is the mod_wsgi_app has all the same dependencies than Silva have, and buildout is a bit stupid and doesn't cache the dependencies resolution. Since not everybody use it by default, it was not activated by default, in hope to reduce the overall execution time of buildout, that is annoying when you have to run it often. After in your production profile, you would could add it. (It is rather annoying to develop with mod_wsgi as you need to restart Apache to reload the code, you would not need that part in development if you use paster for it). But I guess I could add by default, it is not a problem. Regards, Sylvain, -- Sylvain Viollon -- Infrae t +31 10 243 7051 -- http://infrae.com Hoevestraat 10 3033GC Rotterdam -- The Netherlands