Re: Handling instance specific configuration files with buildout

"Charlie Clark" <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Organization Clark Consulting & Research
Message-ID <[email protected]>
Am 18.11.2009, 14:48 Uhr, schrieb Hanno Schlichting <[email protected]>:

> 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.

[camaoCms.cfg]
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
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.