[FLOW3-core] Cloning FLOW3 packages
Christian Lerrahn (Cerebrum)
christian.lerrahn at cerebrum.com.au
Mon Sep 6 04:41:02 CEST 2010
Hi,
I have a FLOW3 package that I would like to run as several instances
with different Settings.yaml files to use a different DB for each
instance. Now, in theory that doesn't sound hard but in practice I'm
running into a lot of trouble. Here are the difficult points.
1. The name spaces have a statical link with the package name.
2. Routes must be referred to explicitly in the main
Configuration/Routes.yaml if subroutes are to be used.
3. If the subroutes include a part depending on the package name, these
must be adjusted explicitly.
Points 2 & 3 can be resolved easily, I believe. Point 3 is a bit
trickier because name spaces are used to refer to classes and objects
in various places in the class (main @var statements and method
parameters).
I actually thought I had resolved all points but I haven't been able to
access the clone so far. I will need to investigate the logs some more
before I can tell what is still going wrong.
The question I have, however, is if there is any preferred way of
cloning a package. And wouldn't it be good if the flow3 script was able
to clone packages? I'd be happy to contribute what I have scripted up
so far (unfortunately mostly BASH and therefore platform-dependent) for
that purpose.
Cheers,
Christian
More information about the FLOW3-team-core
mailing list