zc.buildout recipe to install bluebream
Project description
Introduction
collective.recipe.bluebream is a simple zc.buildout recipe you can use to bootstrap a Bluebream project. In fact, it is so simple that it contains no recipe functionality at all[1]. It simply requires the packages that Bluebream 1.0 requires (based on the sample project setup described here: http://bluebream.zope.org/doc/1.0/gettingstarted.html). It may do more in the future, though.
Installation
Create a buildout:
$ bin/easy_install zc.buildout $ bin/buildout init
Then edit buildout.cfg; use collective.recipe.bluebream like any recipe: just add a part and configure the recipe parameter. You should also configure a known good set of packages via the extends parameter:
[buildout] extends = http://download.zope.org/bluebream/bluebream-1.0.cfg parts = bluebream versions = versions [bluebream] recipe = collective.recipe.bluebream
Then run buildout:
$ bin/buildout
Configuration
By now you should have a bin/paster script. To run bluebream, you will also need a WSGI configuration file and a Zope configuration file. Here are some sample configuration files to get you started.
bluebream.ini
Cut/paste, save as bluebream.ini:
[loggers] keys = root, wsgi [handlers] keys = console, accesslog [formatters] keys = generic, accesslog [formatter_generic] format = %(asctime)s %(levelname)s [%(name)s] %(message)s [formatter_accesslog] format = %(message)s [handler_console] class = StreamHandler args = (sys.stderr,) level = ERROR formatter = generic [handler_accesslog] class = FileHandler args = ('access.log', 'a') level = INFO formatter = accesslog [logger_root] level = INFO handlers = console [logger_wsgi] level = INFO handlers = accesslog qualname = wsgi propagate = 0 [filter:translogger] use = egg:Paste#translogger setup_console_handler = False logger_name = wsgi [filter-app:main] # Change the last part from 'ajax' to 'pdb' for a post-mortem debugger # on the console: use = egg:z3c.evalexception#ajax next = zope [app:zope] use = egg:collective.recipe.bluebream filter-with = translogger [server:main] use = egg:Paste#http host = 127.0.0.1 port = 8080 [DEFAULT] # set the name of the zope.conf file zope_conf = %(here)s/zope.conf
zope.conf
Cut/paste, save as zope.conf:
# main zope configuration file for debug mode # Identify the component configuration used to define the site: site-definition bluebream.zcml <zodb> <filestorage> path var/filestorage/Data.fs blob-dir var/blobstorage </filestorage> # Uncomment this if you want to connect to a ZEO server instead: # <zeoclient> # server localhost:8100 # storage 1 # # ZEO client cache, in bytes # cache-size 20MB # # Uncomment to have a persistent disk cache # #client zeo1 # </zeoclient> </zodb> <eventlog> # This sets up logging to both a file and to standard output (STDOUT). # The "path" setting can be a relative or absolute filesystem path or # the tokens STDOUT or STDERR. <logfile> path z3.log formatter zope.exceptions.log.Formatter </logfile> <logfile> path STDOUT formatter zope.exceptions.log.Formatter </logfile> </eventlog> #developer mode devmode on
Execution
Now you can run paster:
$ bin/paster serve bluebream.ini
And open http://localhost:8080 in your browser.
Completion
That’s it! Checkout http://bluebream.zope.org for more information about Bluebream.
[1] Actually, it installs bin/paster. And a small WSGI application. And some ZCML configuration files. And it creates var directories if they do not exist. ;-)
Changelog
0.2.0 - (2011-07-27)
Create var dirs if they do not exist [aclark]
Include package data [aclark]
0.1.0 - (2011-07-27)
Initial release [aclark]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.recipe.bluebream-0.2.0.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2786d982d675a15c30843441d8b296884d37cf1247dd380685549eaffc38dbf2 |
|
MD5 | 35c9f0c21f08cc5c15da03a83af3b894 |
|
BLAKE2b-256 | dc2ccfca4d88024d318d78ff5d6c64a5e45c44c160221d3a5af71a7492a9410e |