You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you need to send email notifications after application deployments?
7
+
8
+
Christopher Sexton developed a Simple Capistrano email notifier for rails. You can find details at http://www.codeography.com/2010/03/24/simple-capistrano-email-notifier-for-rails.html.
9
+
10
+
Here is Rails 3 port of the notifier.
11
+
12
+
The notifier sends an email after application deployment has been completed.
13
+
14
+
How to use it?
15
+
16
+
1. Add this file to config/deploy folder.
17
+
2. Update the file with your google credentials and from email address.
18
+
3. Add the following content to config/deploy.rb.
19
+
20
+
require 'config/deploy/cap_notify.rb'
21
+
22
+
# add email addresses for people who should receive deployment notifications
subject="#{`sh -c 'git log -i -1 --pretty="format:%an <%ae>" --author="$1"'`.rstrip} Performed a deploy operation on #{now.strftime("%m/%d/%Y")} at #{now.strftime("%I:%M %p")} to #{cap_vars.host}"
65
+
@change_log="HERE IS THE LAST 10 COMMIT MESSAGES\n\n" + `git log --stat -n 10`
0 commit comments