The deploy namespace is defined in the global deploy.rb, which is part
of Capistrano itself. Just redefine your restart task in
config/deploy.rb, as described below.
Also, you'll want to kill capistrano.rake--it's deprecated. You should
be invoking cap directly (e.g. "cap deploy"), rather than via rake
(e.g, "rake remote:deploy").
- Jamis
On 8/20/07, ivanoats <[EMAIL PROTECTED]> wrote:
>
> Sorry, I'm just trying to upgrade from cap 1, and I don't know which
> file to edit, or what line to make changes to. I couldn't find the
> deploy task in deploy.rb or capistrano.rake
>
>
> On Aug 20, 3:33 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > Make sure you are defining your restart task in the deploy namespace:
> >
> > deploy.task :restart, :roles => :app do
> > # ...
> > end
> >
> > Otherwise, you're not actually overriding the existing restart task.
> >
> > - Jamis
> >
> > On 8/20/07, ivanoats <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I am having this issue too, also on slicehost. any ideas?
> >
> > > On Aug 13, 2:47 pm, bongoman <[EMAIL PROTECTED]> wrote:
> > > > Hi there
> >
> > > > I'm using Capistrano 2.0 to deploy to Slicehost (where I'm running
> > > > litespeed) and the deploy task runs fine except at the end it outputs:
> >
> > > > executing "sudo /home/casper/apps/thecompetentmanager/current/script/
> > > > process/reaper"
> > > > ...
> > > > ...
> > > > Couldn't find any pid file in '/home/casper/apps/thecompetentmanager/
> > > > current/tmp/pids' matching 'dispatch.[0-9]*.pid'
> >
> > > > Now, my restart task in deploy.rb is this:
> >
> > > > set :lsws_cmd, "/usr/local/lsws/bin/lswsctrl"
> >
> > > > task :restart, :roles => :app do
> > > > sudo "#{lsws_cmd} restart"
> > > > end
> >
> > > > But I'm unsure what the pid file issue is - any clues appreciated.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---