[Grok-dev] Simple method for mod_wsgi script generation
peaquino
peaquino at wp.pl
Thu Mar 26 20:55:52 EDT 2009
Hello!
In case any of you fellow grokkers tries to run a grok 1.0a1 project under
mod_wsgi here is my short howto (repoze is no longer needed to do that):
1. Install mod_wsgi as described
http://grok.zope.org/documentation/tutorial/installing-and-setting-up-grok-under-mod-wsgi
here (parts 1-4).
2. Create normal Grok project using latest version of grokproject (you don't
have to use virtualenv).
3. Add the following section to buildout.cfg:
[wsgi]
recipe = collective.recipe.modwsgi
eggs = <your project's package name>
z3c.evalexception>=2.0
Paste
PasteScript
PasteDeploy
config-file = ${deploy_ini:output}
Don't forget to include it in "parts =" parameter of the [buildout] section.
4. Run "bin/buildout" in your project folder. It should create a parts/wsgi
folder with script named "wsgi"
in it.
5. If your distribution is Ubuntu or Debian, add the file named "grok" to
your /etc/apache2/sites-available directory with the following contents:
<VirtualHost *:80>
ServerName <your server name>
DocumentRoot "<your static site folder>"
WSGIDaemonProcess grok display-name=%{GROUP} python-eggs=/tmp/eggs
WSGIProcessGroup grok
WSGIScriptAlias /site <absolute path to the wsgi script from 4.
point>
WSGIPassAuthorization On
<Directory "<your buildout directory>">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
6. Run a2ensite grok; /etc/init.d/apache2 reload and enjoy your newly
created site :)
Keep up the great work (Grok is awesome :)),
--
peaquino
--
View this message in context: http://www.nabble.com/Simple-method-for-mod_wsgi-script-generation-tp22734270p22734270.html
Sent from the Grok mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20090326/5d4facda/attachment.html
More information about the Grok-dev
mailing list