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.rb
to link database.yml
to the current directory of deployment
# copy db config
after "deploy:update_code", :copy_db_config
desc "copy db config file"
task :copy_db_config do
run "ln -s ~/path/where/I/copied/database.yml #{release_path}/config/database.yml"
end
Hope this help.