When I try to deploy my app with capistrano, I\'ll get this error:
failed: \"sh -c \'cp /var/www/my_app/releases/20120313115055/config/database.stagi
In Capistrano 3, linking files is built-in. John's answer is simply:
shared/
config/database.yml
In config/deploy.rb use this line
config/deploy.rb
set :linked_files, fetch(:linked_files, []).push('config/database.yml')
This does what John was saying.