[BangPypers] Maintaining dev and prod env alike

Noufal Ibrahim noufal at nibrahim.net.in
Sun Mar 25 13:17:10 CEST 2012


kracethekingmaker <kracethekingmaker at gmail.com> writes:

> Hi
>
>  I am using git. I do dev in my localhost and prod env is my web
> server, I don't have test env. My issue is my model has db params, so
> param are different in both env, so every time I pull and change db
> param, I dont think so this is encouraged, though this has nothing to
> do with python, but most people out here must have faced similar
> situation, kindly let me know best practices.

You should probably keep a -dev settings file which can override the
server parameters (or vice versa). This shouldn be as small as possible
and should be ignored by git. 

-- 
~noufal
http://nibrahim.net.in

Procrastination means never having to say you're sorry.


More information about the BangPypers mailing list