[Grok-dev] Re: VirutalEnv,
is it for deployment (what about startup init.d)
David Bain
david.bain at alteroo.com
Mon Dec 31 11:43:20 EST 2007
So I'll be learning the whole wsgi thing in the new year I guess :)
On Dec 31, 2007 11:33 AM, Tres Seaver <tseaver at palladion.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David Bain wrote:
>
> > I'm wondering, I use virtualenv for development, but should I use it for
> > deploying a grok application.
>
> We use it for deploying grok under mod_wsgi,
>
> > How might this be done?
>
> Under mod_wsgi, you set the 'python-path' of the process to point to the
> virtualenv.
>
> > WSGIDaemonProcess grok threads=1 processes=4 maximum-requests=10000
> user=tseaver
> >
> python-path=/home/repoze/www/grok.repoze.org/lib/python2.4/site-packages
>
> > I'm especially interested in how a virtualenv may be started with an
> > init.dscript to ensure proper startup at boot time.
>
> If you are starting the server via paste, you should just be able to
> point to the 'bin' directory of the virtualenv in your init.d script.
>
>
> Tres.
> - --
> ===================================================================
> Tres Seaver +1 540-429-0999 tseaver at palladion.com
> Palladion Software "Excellence by Design" http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHeRn2+gerLs4ltQ4RAopuAJ4nhCzF3spUSQ61TB5psIiNP7wJaACfbFFy
> rp5nVMAoIBKiOpJq3qPAGek=
> =Qho4
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20071231/f76cce68/attachment-0001.htm
More information about the Grok-dev
mailing list