Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Add newrelic deployment notification to cap.
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Jul 6, 2014
1 parent ac7ff9f commit 1594f6a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Capfile
Expand Up @@ -3,4 +3,5 @@ require 'capistrano/deploy'
require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
require 'capistrano/newrelic'
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -43,6 +43,8 @@ group :development do
gem 'zeus'
gem 'watchr'
gem 'terminal-notifier'
gem 'capistrano'
gem 'capistrano-newrelic'
end

group :development, :test do
Expand Down
17 changes: 17 additions & 0 deletions Gemfile.lock
Expand Up @@ -65,6 +65,13 @@ GEM
bootstrap-sass (3.1.1.1)
sass (~> 3.2)
builder (3.1.4)
capistrano (3.2.1)
i18n
rake (>= 10.0.0)
sshkit (~> 1.3)
capistrano-newrelic (0.0.8)
capistrano (~> 3.0)
newrelic_rpm
celluloid (0.15.2)
timers (~> 1.1.0)
chronic (0.10.2)
Expand All @@ -81,6 +88,7 @@ GEM
execjs
coffee-script-source (1.7.0)
color (1.7)
colorize (0.7.3)
curb (0.8.5)
date_validator (0.7.0)
activemodel (>= 3)
Expand Down Expand Up @@ -140,6 +148,9 @@ GEM
minitest (4.7.5)
multi_json (1.10.1)
mysql2 (0.3.15)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.1)
newrelic_rpm (3.9.0.229)
nokogiri (1.6.1)
mini_portile (~> 0.5.0)
Expand Down Expand Up @@ -231,6 +242,10 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sshkit (1.5.1)
colorize
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
subexec (0.2.3)
terminal-notifier (1.6.0)
thor (0.19.1)
Expand Down Expand Up @@ -268,6 +283,8 @@ DEPENDENCIES
bcrypt
bootstrap-sass (~> 3.1.1)
builder
capistrano
capistrano-newrelic
coffee-rails (~> 4.0.0)
date_validator
draper
Expand Down
2 changes: 2 additions & 0 deletions config/deploy.rb
Expand Up @@ -10,6 +10,8 @@

namespace :deploy do

before :finished, 'newrelic:notice_deployment'

desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
Expand Down

0 comments on commit 1594f6a

Please sign in to comment.