Wouldn't it be nice to use boss.config as default config and add command line option with extra config file that can override main boss.config values? (i.e. ./init(-dev).sh --extra-config=boss.conf.dev)
Kind regards, Nikolay Garanko On Tuesday, June 3, 2014 7:10:26 PM UTC+2, Jesse Gumm wrote: > > Indeed. I've done config file merging before, but the merging is > always so... inconsistent. It's like some rules, you add to a list, > others, you replace a value altogether, then it ends up being a bit of > a mess. > > ...Anyway, I'm just thinking out loud. > > I'll give some thought to this after I finish up my testing > experiments with boss_db. > > -Jesse > > On Mon, Jun 2, 2014 at 10:52 AM, David Welton <[email protected] > <javascript:>> wrote: > > > I'm torn on whether or not to use dev-specific config files onto have > >> dynamically loaded config sections of a single config. > >> > >> I wouldn't feel terribly comfortable doing *too* much hackery by way of > >> precompiling config dynamically. > > > >> That said, having it explicitly load a boss-dev.config or something > like > >> that would probably be the simplest change to add prod/dev config > splits. > > > > Yeah, as I said in my other email, I'd be happy to get away from > > having CB be so dependent on weird compiler hacks, and do things in a > > more Erlangish way. > > > > Rather than have completely separate files though, what I'd ideally > > like to see is have values from the dev or production files override > > the main config file, so that most of the configuration can be > > centralized and only bits and pieces customized as needed. > > > > -- > > David N. Welton > > > > http://www.welton.it/davidw/ > > > > http://www.dedasys.com/ > > > > -- > > You received this message because you are subscribed to the Google > Groups "ChicagoBoss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > Visit this group at http://groups.google.com/group/chicagoboss. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/CA%2Bb9R_tMc4HyuftTQUAjHsCZrQfGPC3Q9oC6sxbvqnVacY8rtQ%40mail.gmail.com. > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Jesse Gumm > Owner, Sigma Star Systems > 414.940.4866 || sigma-star.com || @jessegumm > -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/e3008779-71a9-4264-bd89-f612956ca22d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
