Re: build dist replacement

alex black <[email protected]> Wed, 9 Mar 2005 10:54:24 -0800
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
> True. But it's heavy to extend Project for this.

Yes but I think other stuff belongs in project, so i think extending:

ProjectName extends Project is fine... eh?

I don't really, uh, understand the example below, however I did see 
that you retained a conf file specific to dev: again I would like to 
avoid that entirely.

_a




> Couldn't we reverse the design: normal conf should be production one, 
> and exception is "dev". We could have a conf value in 
> binarycloud.conf.xml to define the 'dev' machine with either an ip 
> 192.168.x.y (which cannot be on a public machine) or a host name, and 
> have Conf *set* the conf value "is_dev"
> and load an additional dir to override values if dev:
>
> binarycloud.conf.xml
>    <section name="is_dev">
>       <param name="if_host">myname.example.com</param>
>    </section>
>
> or directly
>    <param name="is_dev" type="boolean">true</param>
>
> Conf :
>    // load binarycloud.com
> ...
>    $is_dev = $this->configuration[BC_CONF_FACTORY] \
>                                   ['binarycloud']['is_dev'];
>    if ($id_dev !== true) {
>       if ($is_dev['if_host'] == $_SERVER['HOSTNAME']) {
>           Conf->setConf('/binarycloud/is_dev', true);
>           $this->configuration[BC_CONF_FACTORY] \
>                                   ['binarycloud']['is_dev'] = true:
>       }
>    }
>    if ($is_dev && file_exists($confdir . '/development.conf.xml')) {
>       //load it
>    }
>
>
> -- 
> Jean-Christophe Michel
> _______________________________________________
> dev mailing list
> dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
> http://lists.binarycloud.com/mailman/listinfo/dev
>
>

-- 
alex black, founder
the turing studio, inc.

510.666.0074
[email protected]
http://www.turingstudio.com

2600 10th street, suite 635
berkeley, ca 94710


_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev