collective.recipe.bluebream 是一个 zc.buildout 配方,您可以使用它来启动 Bluebream 项目。
项目描述
简介
collective.recipe.bluebream 是一个 zc.buildout 配方,您可以使用它来启动 Bluebream 项目。它执行以下操作
需要 BlueBream 所需的软件包(根据此处描述的示例项目设置: http://bluebream.zope.org/doc/1.0/gettingstarted.html)
安装 bin/paster
安装一个小的 WSGI 应用程序
安装 ZCML 配置文件
如果不存在,则添加一些 var 目录
支持开发 eggs
安装
创建一个 buildout
$ virtualenv-2.7 . $ bin/pip install zc.buildout $ bin/buildout init
然后编辑 buildout.cfg;使用 collective.recipe.bluebream 如同任何配方:只需添加一个部分并配置 recipe 参数。您还应该通过 extends 参数配置一组已知的良好软件包
[buildout]
extends = http://download.zope.org/bluebream/bluebream-1.0.cfg
parts =
bluebream
versions = versions
[bluebream]
recipe = collective.recipe.bluebream
然后运行 buildout
$ bin/buildout
开发 eggs
从版本 0.3.0 开始,collective.recipe.bluebream 通过 eggs 参数支持软件包开发
[buildout]
develop =
src/my.package
[bluebream]
eggs =
my.package
配置
您现在应该有一个 bin/paster 脚本。要运行 bluebream,您还需要一个 WSGI 配置文件和一个 Zope 配置文件。以下是一些示例配置文件,以帮助您入门。
bluebream.ini
复制/粘贴,保存为 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
复制/粘贴,保存为 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
执行
现在您可以运行 paster
$ bin/paster serve bluebream.ini
然后在浏览器中打开 https://:8080。
完成
就是这样!请访问 http://bluebream.zope.org 了解有关 Bluebream 的更多信息。
变更日志
0.4.0 - (2012-04-08)
清理包 [aclark]
0.3.0 - (2011-07-27)
支持 eggs 参数,用于开发 eggs 等。[aclark]
添加记录器 [aclark]
将元数据添加到 setup.py 中 [aclark]
0.2.0 - (2011-07-27)
如果不存在,则创建 var 目录 [aclark]
包含包数据 [aclark]
0.1.0 - (2011-07-27)
初始发布 [aclark]
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关 安装包 的更多信息。
源代码分发
collective.recipe.bluebream-0.4.0.zip 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | b3c77d1c45d1164d30572c236a6566aff9e5ffde2fd526db12a2ca0b4906c04a |
|
| MD5 | b8e4e2c7775fb9eb48895ccdc75455a9 |
|
| BLAKE2b-256 | 36a6421008e1502657df2123dadf998c0d085a68a6f793cdd397634d3559daa6 |