What if you explicitly specify the stage to deploy:

  cap staging deploy:restart

Does it still happen? I wonder if your staging script isn't getting
loaded for some reason. Another test would be to place a puts() call at
the top of your staging.rb:

  puts "staging.rb loaded"

If you don't see that in the output, then you know something is wrong
with your setup.

- Jamis

On 1/19/09 10:27 AM, JensC wrote:
> Hello All,
> 
> I have a little problem with my capistrano multistage setup.
> 
> My config/deploy.rb looks simple like that:
> 
> set :stages, %w(staging production)
> set :default_stage, "staging"
> require 'capistrano/ext/multistage'
> 
> in config/deploy/staging.rb I want to define a task (beside of all
> other settings):
> 
> namespace :deploy do
>   task :restart, :roles => :app do
>     sudo "mongrel_rails cluster::restart -C #{mongrel_conf}"
>   end
> end
> 
> mongrel_conf is set. However a cap deploy:restart executes script/
> reaper instead of my task.
> I also tried to define an empty restart task in config/deploy:rb in
> the hope this would force to use the staging taks. But no luck (reaper
> was not executed anymore). I am using capistrano (2.5.2) and
> capistrano-ext (1.2.1).
> 
> Any help very appriciated.
> Jens
> 
> > 


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

Reply via email to