>
> I tried to create a task in my deploy.rb:
>
> desc "Restart the mongrel"
> task :restart, :roles => :app do
> sudo "/etc/init.d/mongrel.sh stop"
> run "/etc/init.d/mongrel.sh start"
> end
>
> but this does not get called... What am I doing wrong?
>
namespace :deploy do
desc "The spinner task is used by :cold_deploy to start the
application up"
task :spinner, :roles => :app do
run "cd #{deploy_to}/current && mongrel_rails cluster::start"
end
desc "Restart the mongrel cluster"
task :restart, :roles => :app do
run "cd #{deploy_to}/current/ && mongrel_rails cluster::restart"
end
end
It does the job, was adapted from a cap 1 script somewhere, and just
read up on the upgrade docs to make it work for me. IIRC the deploy
namespace was the trick, but I really don't remember now
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---