When you say it "didn't work", what do you mean? Are you getting an error?

- Jamis

On Oct 18, 2007, at 8:07 AM, Jon wrote:


I'm running Capistrano 2.1.0 with capistrano-ext 1.2.0 with staging
and production environments.

I tried to redefine task :restart in my config/deploy/staging.rb, both
as:

namespace :deploy do
  task :restart, :roles => :app do
    # yada yada
  end
end

and

deploy.task :restart, :roles => :app do
  # yada yada
end

but neither worked.  I moved the restart override to config/deploy.rb
and it works fine in staging, but I don't want to use that task for
production!  Any ideas why I can't override a task in the stage-
specific file?  Thanks.


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to capistrano- [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/ group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to