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):<br>
1. Install mod_wsgi as described <a href="http://grok.zope.org/documentation/tutorial/installing-and-setting-up-grok-under-mod-wsgi" target="_top" rel="nofollow">here</a> (parts 1-4).<br />
2. Create normal Grok project using latest version of grokproject (you don't have to use virtualenv).<br />
3. Add the following section to buildout.cfg:
<pre>
[wsgi]
recipe = collective.recipe.modwsgi
eggs = <your project's package name>
z3c.evalexception>=2.0
Paste
PasteScript
PasteDeploy
config-file = ${deploy_ini:output}
</pre>
Don't forget to include it in "parts =" parameter of the [buildout] section.<br>
4. Run "bin/buildout" in your project folder. It should create a parts/wsgi folder with script named "wsgi"
in it.<br>
5. If your distribution is Ubuntu or Debian, add the file named "grok" to your /etc/apache2/sites-available directory with the following contents:
<pre>
<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>
</pre>
6. Run a2ensite grok; /etc/init.d/apache2 reload and enjoy your newly created site :)<br>
Keep up the great work (Grok is awesome :)),<br><br>
--<br>
peaquino
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/Simple-method-for-mod_wsgi-script-generation-tp22734270p22734270.html">Simple method for mod_wsgi script generation</a><br>
Sent from the <a href="http://www.nabble.com/Grok-f28342.html">Grok mailing list archive</a> at Nabble.com.<br>