On Mon, Apr 5, 2010 at 2:31 AM, Oleg Kostyuk <cub.ua...@gmail.com> wrote:
> 2010/3/30 Bill Moseley <mose...@hank.org>: > > > > .......................... > > The applications have separate YAML files for different environments. > There > > might be "dev.yml", "testing.yml", "qa.yml", and "produciton.yml". Each > > machine has a file in /etc/<$app_name> that sets what environment the > > application should start in (i.e. what YAML config file to use). Push to > > testing and the app starts and uses the testing database as configured in > > testing.yml. > > Catalyst already have such possibility: read end of "DESCRIPTION" in > Catalyst::Plugin::ConfigLoader, and more details in description of > get_config_local_suffix(). > Yes, similar. ConfigLoader didn't exist when I wrote the above, and it's not a plugin (the Plugin is just a thin wrapper) -- it's available outside of Catalyst which is very useful. Wasn't there talk a while back about splitting up ConfigLoader to make it available outside of Catalyst and with the ability to merge files? -- Bill Moseley mose...@hank.org
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/