I have one application that I sold to multiple clients. Each client has his own dedicated application (on Heroku).
The applications of these customers only differ by 3 config files: database.yml, aws.yml and corporate.rb
Locally, I have one master branch and as many other local branches as I have customers. I need these local branches to store the 3 config files of each customer. Every time I make a change on the master, I merge it with every customer branches and push them one by one to Heroku.
This is quite heavy...
Following suggestion of this post: pull/push from multiple remote locations, I created one remote grouped branch and hacked my config file so that this branch is associated to multiple urls.
The problem is that when I try to push it, It refuses to do it because the remotes are not correctly synchronized. If I force the push, it overwrites my config files, which is not a solution either.
I tried to include these config files in .gitignore, but it keeps pushing them.
Any idea to solve this issue? Thanks!!!