I have a git repository both on GitHub and on my private Amazon instance and with a unique commit I update both.
There is a way to commit the file database.yml only to my private repository and not on GitHub?
If could help, I’m using Capistrano for deployment.
In the past days I found no answer to this question, but then I solved my problem, so I’ll say what I’ve done to have things working.
Since I don’t have to modify the file
database.yml, I solved my problem manually copying it to my Amazon instance and adding it to.gitignore.Then, I added a task in
deploy.rbto linkdatabase.ymlto the current directory of deploymentHope this help.