You need to redefine the task inside the deploy namespace. You can do
this in two ways. You can either reopen the deploy namespace and
define your task:
namespace :deploy do
task :restart, :roles => :app do
# ...
end
end
Or, you can use the shortcut (which is handy when you only want to
redefine a single task):
deploy.task :restart, :roles => :app do
# ...
end
- Jamis
On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> We just started using "mongrel cluster". Is there a way to override
> the deploy:restart task? I had to comment out the file script/process/
> reaper because it was giving me this error:
>
> Couldn't find any pid file in '/var/www/myapp/current/tmp/pids'
> matching 'dispatch.[0-9]*.pid'
>
> 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?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---