On Wednesday, February 26, 2014 8:14:55 PM UTC-8, Dave S wrote: > > > > On Wednesday, February 26, 2014 7:51:20 PM UTC-8, Dave S wrote: >> >> >> >> On Wednesday, February 19, 2014 12:15:20 PM UTC-8, Joe Barnhart wrote: >>> >>> I have a model file "0_globals.py" which I have under source control. >>> It defines overall constants for the site, including the connection >>> string. On each development machine I have a file "1_locals.py" which >>> overrides selected variables in the globals file. It is NOT under source >>> control and is unique for each development machine (since I code from a >>> variety of machines). >>> >>> Model files are loaded in alphabetical order, so the 0_globals file is >>> loaded first, then some constants are overwritten by 1_locals. This is >>> simple and "grut" but it works amazingly well. It also works without any >>> special features of the source code control system (I don't use git but >>> mercurial). >>> >> >> Niphlod's technique of source-controlling the locals file under a >> different name (e.g., 1_locals_sys5) and then renaming it after the >> pull/clone would still work. This would allow you to track how a system is >> configured, especially if it needs to evolve for new apps. This doesn't >> require any special features in mercurial, just an entry on your >> installation checklist to make sure you do the rename (or copy). But as >> long as you have the file recoverable *in some way*, you should be good. >> >> > I think this is also the territory that chef and puppet are trying to > cover. >
And salt, as referenced in another thread (thanks, Joe Barnhart). /dps >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.