On Jun 7, 9:32 am, Mat Schaffer <[EMAIL PROTECTED]> wrote:
> On Jun 7, 2007, at 8:54 AM, H. Wade Minter wrote:
>
> > Does anyone have a tip for sending email post-deploy?  I'd like to
> > have it set up so that our dev team gets notified when a deployment is
> > pushed out.
>
> > I tried this in my Cap 1 deploy.rb's :after_update_code method, but
> > it's not actually sending mail:
>
> >   run "/usr/bin/mail -s 'Deployed #{application} version #{revision}'
> > [EMAIL PROTECTED] < /dev/null"
>
> Run would send the email from your server(s).  Have you tried just
> running the mail command there to make sure you have it right?  The
> '< /dev/null' looks fishy.
>
> Have to looked into just using action_mailer?  That would send email
> from the machine doing the deployment and wouldn't have the chance of
> sending one email per web server.  Plus it's ruby :)

Yes, the command with </dev/null works if I ssh into the server and
run it from the command line.  It appears to work from capistrano, but
the mail doesn't actually get sent.

Is there a recipe that uses action_mailer within capistrano to do
something like that post-deploy?


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