So I'll be learning the whole wsgi thing in the new year I guess :)<br><br><div class="gmail_quote">On Dec 31, 2007 11:33 AM, Tres Seaver <<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><div class="Ih2E3d"><br>David Bain wrote:
<br><br>> I'm wondering, I use virtualenv for development, but should I use it for<br>> deploying a grok application.<br><br></div>We use it for deploying grok under mod_wsgi,<br><div class="Ih2E3d"><br>> How might this be done?
<br><br></div>Under mod_wsgi, you set the 'python-path' of the process to point to the<br>virtualenv.<br><br>> WSGIDaemonProcess grok threads=1 processes=4 maximum-requests=10000 user=tseaver<br>> python-path=/home/repoze/www/grok.repoze.org/lib/python2.4/site-packages
<br><div class="Ih2E3d"><br>> I'm especially interested in how a virtualenv may be started with an<br></div>> init.dscript to ensure proper startup at boot time.<br><br>If you are starting the server via paste, you should just be able to
<br>point to the 'bin' directory of the virtualenv in your init.d script.<br><br><br>Tres.<br>- --<br>===================================================================<br>Tres Seaver +1 540-429-0999
<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a><br>Palladion Software "Excellence by Design" <a href="http://palladion.com" target="_blank">http://palladion.com</a><br>-----BEGIN PGP SIGNATURE-----
<br>Version: GnuPG v1.4.6 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br><br>iD8DBQFHeRn2+gerLs4ltQ4RAopuAJ4nhCzF3spUSQ61TB5psIiNP7wJaACfbFFy
<br>rp5nVMAoIBKiOpJq3qPAGek=<br>=Qho4<br>-----END PGP SIGNATURE-----<br><br>_______________________________________________<br>Grok-dev mailing list<br><a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">
http://mail.zope.org/mailman/listinfo/grok-dev</a><br></blockquote></div><br>