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

0 views
Skip to first unread message

Xdmx Xdmx

unread,
May 5, 2008, 6:23:30 PM5/5/08
to rubyonrails...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Shawn Balestracci

unread,
May 5, 2008, 6:38:28 PM5/5/08
to rubyonrails...@googlegroups.com
Try after "deploy:finalize_update", :symlink_shared_stuff
Reply all
Reply to author
Forward
0 new messages