Simple development buildout for Plone 3.3 (RC3) on Repoze
by
Wojciech Lichota
—
last modified
2009-07-04 22:55
Introduce how to build newest Plone instance and run it with paster.
On the web there are some documents that describes how to build Plone compatibile with WSGI, e.g.:
But this solutions uses mostly now very beautiful workarounds. So I made my own buildout. I will use it only for development. Deployment buildout probably will be completely different.Buildout is based on code be Mikko Ohtamaa published on Red Innovation Ltd. blog.
[buildout]
extends =
http://good-py.appspot.com/release/repoze.zope2/1.0
http://dist.plone.org/release/3.3rc3/versions.cfg
parts =
zope2
paster
instance
find-links =
http://dist.repoze.org/zope2/latest
http://dist.repoze.org/zope2/dev
http://dist.plone.org/release/3.3rc3
http://download.zope.org/ppix/
http://download.zope.org/distribution/
http://effbot.org/downloads
develop =
eggs =
Plone
stxnext.pdb
Products.DocFinderTab
elementtree
repoze.debug
versions = versions
[zope2]
recipe = plone.recipe.zope2install
url = ${versions:zope2-url}
fake-zope-eggs = true
additional-fake-eggs =
ZODB3
ZConfig
pytz
[paster]
recipe = repoze.recipe.egg
scripts = paster
eggs =
${buildout:eggs}
repoze.zope2
[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:admin
effective-user = zope
http-address = 8080
debug-mode = on
verbose-security = on
eggs = ${buildout:eggs}
zcml =
stxnext.pdb
zope-conf-additional =
<cgi-environment>
HTTP_ACCEPT_CHARSET utf-8
</cgi-environment>
Paster to run needs development.ini file:
[DEFAULT]
debug = True
[app:zope2]
paste.app_factory = repoze.obob.publisher:make_obob
repoze.obob.get_root = repoze.zope2.z2bob:get_root
repoze.obob.initializer = repoze.zope2.z2bob:initialize
repoze.obob.helper_factory = repoze.zope2.z2bob:Zope2ObobHelper
zope.conf = %(here)s/parts/instance/etc/zope.conf
[filter:errorlog]
use = egg:repoze.errorlog#errorlog
path = /__error_log__
keep = 20
ignore =
paste.httpexceptions:HTTPUnauthorized
paste.httpexceptions:HTTPNotFound
paste.httpexceptions:HTTPFound
[pipeline:main]
pipeline =
egg:repoze.debug#pdbpm
egg:Paste#httpexceptions
egg:repoze.retry#retry
egg:repoze.tm#tm
egg:repoze.vhm#vhm_xheaders
errorlog
zope2
[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 8080
To start web server use command:
./bin/paster serve development.ini
Voilà :)

