a2art

09/01/25 buildout.cfg

Plone 3.1.6入れたもののほったらかしでしたが、移行のためにポート変えようと思ったら、変え方が分からない。おかしいなあ、前は普通にやってたのに、と思ったら、./etc/zope.conf に相当するものが見つかりません。フォルダの奥底にらしきファイルがあったのでそれかと思いきやどうも様子が違って、./buildout.cfgなるファイルを発見。

[root@mail zinstance]# cat buildout.cfg
[buildout]
eggs-directory=/opt/Plone-3.1/buildout-cache/eggs
download-cache=/opt/Plone-3.1/buildout-cache/downloads
newest = false
parts =
plone
zope2
productdistros
instance
zopepy
precompile
chown
unifiedinstaller

# Add additional egg download sources here. dist.plone.org contains archives
# of Plone packages.
find-links =
http://dist.plone.org
http://download.zope.org/ppix/
http://download.zope.org/distribution/
http://effbot.org/downloads

# Add additional eggs here
# elementtree is required by Plone
eggs =
elementtree
FeedParser

# Reference any eggs you are developing here, one per line
# e.g.: develop = src/my.package
develop =

[plone]
recipe = plone.recipe.plone >=3.1.1, < 3.2dev

[zope2]
recipe = plone.recipe.zope2install
url = ${plone:zope2-url}

# Use this section to download additional old-style products.
# List any number of URLs for product tarballs under URLs (separate
# with whitespace, or break over several lines, with subsequent lines
# indented). If any archives contain several products inside a top-level
# directory, list the archive file name (i.e. the last part of the URL,
# normally with a .tar.gz suffix or similar) under ‘nested-packages’.
# If any archives extract to a product directory with a version suffix, list
# the archive name under ‘version-suffix-packages’.
[productdistros]
recipe = plone.recipe.distros
urls =
nested-packages =
version-suffix-packages =

[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
# The line below sets only the initial password. It will not change an
# existing password.
user = admin:xxxxxxx
http-address = 8888
effective-user = plone
#debug-mode = on
#verbose-security = on

# If you want Zope to know about any additional eggs, list them here.
# This should include any development eggs you listed in develop-eggs above,
# e.g. eggs = ${buildout:eggs} ${plone:eggs} my.package
eggs =
${buildout:eggs}
${plone:eggs}

# If you want to register ZCML slugs for any packages, list them here.
# e.g. zcml = my.package my.other.package
zcml =

products =
${buildout:directory}/products
${productdistros:location}
${plone:products}

[zopepy]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
interpreter = zopepy
extra-paths = ${zope2:location}/lib/python
scripts = zopepy

http-address = 8080[precompile]というのを変えればよいかと思えばそうでもなく次にbuildoutなるコマンドを実行。

$./bin/binbuildout

これでようやく認識。他にもいろいろありそう……。

参考URL
http://zope.jp/documents/how-to/plural-ver
http://kinote.jp/kilog/buildout306a-plone3.1.6-306b30573066307f308b

Tags:

Leave a Comment