Hi, i’m setting up capistrano, but i’ve a “little” problem to run a
custom task after the finalize_update, or after the symlink task.
Actually i’ve this in my deploy.rb
after :finalize_update, :symlink_shared_stuff
desc “Symlink the folders and files”
task :symlink_shared_stuff, :roles => [:app, :web] do
run “ln -nfs #{shared_path}/upload #{current_path}/upload”
run “ln -nfs #{shared_path}/system/database.yml
#{current_path}/config/database.yml”
end
But it does never be run. What’s wrong ?
The problem is that without the db config everything goes wrong when
capistrano try to run the migrations (rake aborted: no db.yml file
found)
Thanks