capistrano: only log newrelic deployment in production.

Fix local development deployments getting logged in New Relic.
This commit is contained in:
evazion
2019-08-07 22:11:07 -05:00
parent 2beb79166e
commit 9996dd40bb
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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"