[Grok-dev] Re: VirutalEnv, is it for deployment (what about startup init.d)

Tres Seaver tseaver at palladion.com
Mon Dec 31 11:33:58 EST 2007


-----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-----



More information about the Grok-dev mailing list