Skip to content. | Skip to navigation

This Top Brown Viewlet registered to qPloneSkinBrio product
Sections
You are here: Home News Plone 3 zc.buildout

 Subscribe in a reader

Plone 3 zc.buildout

by Bryan Hinton last modified Feb 27, 2008 01:39 AM
— filed under:

Using zc.buildout to setup a Plone3/Zope2 Development Environment

 

How to install Zope2 and Plone3 using setuptools, zc.buildout, and paster.  The following assumes that you have Python2.4.x installed.
$ echo $LD_LIBRARY_PATH; echo $PATH; echo $PYTHONPATH

/usr/local/pgsql/lib:/home/bhinton/python2.4/lib:/usr/local/lib:/usr/lib
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/bhinton/bin:/home/bhinton/lib/python2.4
/home/bhinton/lib/python2.4

$ wget http://peak.telecommunity.com/dist/ez_setup.py

$ python ez_setup.py --install-dir=/home/bhinton/lib/python2.4/

$ easy_install ZopeSkel --install-dir=/home/bhinton/lib/python2.4/

$ paster create -t plone3_buildout mysite.com

$ Selected and implied templates:
  ZopeSkel#plone3_buildout  A buildout for Plone 3 projects
  Variables:
    egg:      avidcode.com
    package:  avidcodecom
    project:  avidcode.com
  Enter zope2_install (Path to Zope 2 installation; leave blank to fetch one) ['']: BLANK
  Enter plone_products_install (Path to directory containing Plone products; leave blank to fetch one) ['']: BLANK
  Enter zope_user (Zope root admin user) ['admin']: YOURUSERNAME
  Enter zope_password (Zope root admin password) ['']: YOURPASSWORD
  Enter http_port (HTTP port) [8080]: HIGH NUMBERED PORT - i.e. 8090
  Enter debug_mode (Should debug mode be "on" or "off"?) ['off']: LEAVE OFF FOR PRODUCTION
  Enter verbose_security (Should verbose security be "on" or "off"?) ['off']: LEAVE OFF FOR PRODUCTION
  Creating template plone3_buildout
  Creating directory ./avidcode.com
  Copying README.txt to ./avidcode.com/README.txt
  Copying bootstrap.py to ./avidcode.com/bootstrap.py
  Copying buildout.cfg_tmpl to ./avidcode.com/buildout.cfg
  Recursing into products
    Creating ./avidcode.com/products/
    Copying README.txt to ./avidcode.com/products/README.txt
  Recursing into src
    Creating ./avidcode.com/src/
    Copying README.txt to ./avidcode.com/src/README.txt
  Recursing into var
    Creating ./avidcode.com/var/
    Copying README.txt to ./avidcode.com/var/README.txt



-----------------------------------------------------------

Generation finished You probably want to run python bootstrap.py and then edit buildout.cfg before running bin/buildout -v   See README.txt for details

-----------------------------------------------------------

$ cd avidcode.com $ python bootstrap.py
You must now configure buildout.cfg appropriately.
The following two configurations depict the following

 

A: Single Instance of Zope with CacheFU, DocFinder, CacheFu, and Feedmixer
    installed.

    buildout.cfg

 

B. Multiple ZEO Clients and a Single ZEO Server with CacheFu, Varnish,  DocFinder, and Clouseau installed. The ZEO     Server is responsible for managing the connection to the ZODB.
   
    plone.vcl

 

Apache Rewrite Rules for Example B:

      RewriteEngine On
      RewriteRule ^/login_(.*) https://%{SERVER_NAME}/login_$1 [NE,L]
      RewriteRule ^/(.*)    
      http://localhost:8092/VirtualHostBase/http/%{SERVER_NAME}:80/content/VirtualHostRoot/$1 [P]
Document Actions