I use Capistrano for deploying my apps, and have been doing so for a while. I keep seeing references to the ''cleanup'' task, as in: desc "Cleanup after every deployment" task :after_deploy do cleanup end But I don''t seem to have this task available. It doesn''t show up when I run cap -T. Anyone know how I get hold of this task and others. I am using Rails 2.3.2 and Capistrano 2.5.5 Thanks for your help, Nick
Marnen Laibow-Koser
2009-Jun-21 19:58 UTC
Re: Capistrano and "the task `cleanup'' does not exist"
nickflux wrote:> I use Capistrano for deploying my apps, and have been doing so for a > while. I > keep seeing references to the ''cleanup'' task, as in: > > desc "Cleanup after every deployment" > task :after_deploy do > cleanup > end > > But I don''t seem to have this task available.[...] Assumning a standard Capistrano setup, that task is in the deploy namespace, so try cap deploy:cleanup. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
Thanks. That''s worked a treat. Nick On Jun 21, 3:58 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote:> nickflux wrote: > > I use Capistrano for deploying my apps, and have been doing so for a > > while. I > > keep seeing references to the ''cleanup'' task, as in: > > > desc "Cleanup after every deployment" > > task :after_deploy do > > cleanup > > end > > > But I don''t seem to have this task available. > > [...] > > Assumning a standard Capistrano setup, that task is in the deploy > namespace, so try cap deploy:cleanup. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.