lib/appsignal/integrations/capistrano/capistrano_2_tasks.rb in appsignal-1.4.0.alpha.2 vs lib/appsignal/integrations/capistrano/capistrano_2_tasks.rb in appsignal-1.4.0.beta.1
- old
+ new
@@ -5,11 +5,11 @@
after 'deploy', 'appsignal:deploy'
after 'deploy:migrations', 'appsignal:deploy'
namespace :appsignal do
task :deploy do
- env = fetch(:rails_env, fetch(:rack_env, 'production'))
+ env = fetch(:appsignal_env, fetch(:stage, fetch(:rails_env, fetch(:rack_env, 'production'))))
user = ENV['USER'] || ENV['USERNAME']
revision = fetch(:appsignal_revision, fetch(:current_revision))
appsignal_config = Appsignal::Config.new(
ENV['PWD'],
@@ -29,10 +29,10 @@
puts 'Dry run: AppSignal deploy marker not actually sent.'
else
marker.transmit
end
else
- puts 'Not notifying of deploy, config is not active'
+ puts "Not notifying of deploy, config is not active for environment: #{env}"
end
end
end
end
end