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 :)
-Mat

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