Capistrano and after/before task...what's wrong?

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

Try after “deploy:finalize_update”, :symlink_shared_stuff

On Mon, May 5, 2008 at 3:23 PM, Xdmx X.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs