Skip to content

Instantly share code, notes, and snippets.

@optilude
Created January 1, 2012 11:25
Show Gist options
  • Save optilude/1547067 to your computer and use it in GitHub Desktop.
Save optilude/1547067 to your computer and use it in GitHub Desktop.
Plone 4.1 and Zope 2.13 WSGI setup
# This buildout.cfg should work to run Zope as a WSGI process
[buildout]
extends = http://dist.plone.org/release/4.1-latest/versions.cfg
parts = instance paster wsgiconfig
[instance]
recipe = plone.recipe.zope2instance
eggs =
Plone
PIL
user = admin:admin
[paster]
recipe = zc.recipe.egg
eggs =
${instance:eggs}
Paste
PasteScript
repoze.tm2
repoze.retry
script = paster
[wsgiconfig]
recipe = collective.recipe.template
input = inline:
[app:zope]
use = egg:Zope2#main
zope_conf = ${buildout:directory}/parts/instance/etc/zope.conf
[pipeline:main]
pipeline = egg:paste#evalerror egg:repoze.retry#retry egg:repoze.tm2#tm zope
[server:main]
use = egg:paste#http
host = localhost
port = 8000
output = ${buildout:directory}/zope2.ini
# Run with ./bin/paster serve zope2.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment