If I remember, it should be trivial to hook in:

before :deploy, 'deploy:web:disable'
after 'deploy:restart', 'deploy:web:enable'

Haven't tried, and haven't used Cap in awhile, so I hope that does what I
expect.

Of course, it really depends what kind of behavior you want. I've been
disabling manually, but you can certainly hook things deeper than that --
for example, I send email after deploy:symlink, because that's when I know
something was successful.

On Wed, Sep 10, 2008 at 8:26 PM, Tim Haines <[EMAIL PROTECTED]> wrote:

>
> Hi there,
>
> It's my first time setting up anything more than a basic capistrano
> script.  I've been customising web:deploy:disable a little.
>
> I'm wondering if it's run automatically at some stage, or if the
> default is to only run it when requested at the command line?  ie.,
> typically:
>
> >cap deploy:web:disable
> >cap deploy
> >cap deploy:web:enable
>
>
> Do people normally include it so it gets automatically run before and
> after the deploy task?  If so, how do you hook it in?
>
> Cheers,
>
> Tim.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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