[Zope-dev] Handling instance specific configuration files with buildout

Charlie Clark charlie.clark at clark-consulting.eu
Wed Nov 18 09:19:24 EST 2009

Am 18.11.2009, 14:48 Uhr, schrieb Hanno Schlichting <hanno at hannosch.eu>:

> We use this snippet for something similar:
> [link-extensions]
> recipe = plone.recipe.command
> command =
>     for i in ${buildout:parts-directory}/instance*; do rm -rf
> $i/Extensions; ln -s ${buildout:directory}/Extensions $i/Extensions;
> done
> update-command = ${link-extensions:command}
> I'm sure you can adopt this to linking everything in
> ${buildout:directory}/config into the various parts/instance*
> directories.

Hi Hanno,

that does indeed look pretty usable.

recipe = plone.recipe.command
command =
      rm -rf ${buildout:parts-directory}/instance/etc/cfg;
      cp -R ./src/camaoCms.cfg ${buildout:parts-directory}/instance/etc/cfg;

Works fine even thought I'm sure it can be improved.

Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226

More information about the Zope-Dev mailing list