capistrano: only log newrelic deployment in production.
Fix local development deployments getting logged in New Relic.
This commit is contained in:
2
Capfile
2
Capfile
@@ -17,5 +17,3 @@ require 'new_relic/recipes'
|
||||
|
||||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
||||
|
||||
after "deploy:updated", "newrelic:notice_deployment"
|
||||
|
||||
@@ -6,4 +6,6 @@ server "saitou", :roles => %w(web app)
|
||||
server "oogaki", :roles => %w(worker)
|
||||
|
||||
set :linked_files, fetch(:linked_files, []).push(".env.production")
|
||||
set :rbenv_path, "/home/danbooru/.rbenv"
|
||||
set :rbenv_path, "/home/danbooru/.rbenv"
|
||||
|
||||
after "deploy:finished", "newrelic:notice_deployment"
|
||||
|
||||
Reference in New Issue
Block a user