customization - What approaches exist for personal configuration in a Rails project? -
consider have typical rails project under git repository. want personal tweaks configuration or code base (e.g. simplify debugging). don't want work when switching, merging or pulling git branches. don't want affect other developers either. approaches use (or can suggest) that?
my approach following:
- create file (let
personal_initializer.rb
) inconfig/intializers/
directory in ~/.gitconfig define
[core]
excludesfile = ~/.excludesfile
in
~/.excludesfile
addconfig/intializers/personal_initializer.rb
- do hacks , tweaks in personal_initializer
i add development.rb file .gitignore , create development.example.rb
development.rb contain personal configuration, , wont pushed other devs local sources
development.example.rb contain default configuration, when new dev pull sources must copy development.example.rb development.rb , tweak wish
Comments
Post a Comment