Attempt to fix hoptoad
This commit is contained in:
parent
2068d25d84
commit
1b51b15d18
2 changed files with 11 additions and 3 deletions
|
|
@ -34,9 +34,17 @@ task :deploy => :environment do
|
||||||
invoke :'bundle:install'
|
invoke :'bundle:install'
|
||||||
invoke :'rails:db_migrate'
|
invoke :'rails:db_migrate'
|
||||||
invoke :'rails:assets_precompile'
|
invoke :'rails:assets_precompile'
|
||||||
|
invoke :notify_errbit
|
||||||
|
|
||||||
to :launch do
|
to :launch do
|
||||||
queue "touch #{deploy_to}/tmp/restart.txt"
|
queue "touch #{deploy_to}/tmp/restart.txt"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc 'Notifies the exception handler of the deploy.'
|
||||||
|
task :notify_errbit do
|
||||||
|
revision = `git rev-parse HEAD`.strip
|
||||||
|
user = ENV['USER']
|
||||||
|
queue "bundle exec rake hoptoad:deploy TO=#{rails_env} REVISION=#{revision} REPO=#{repository} USER=#{user}"
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
HoptoadNotifier.configure do |config|
|
HoptoadNotifier.configure do |config|
|
||||||
# Change this to some sensible data for your errbit instance
|
# Change this to some sensible data for your errbit instance
|
||||||
config.api_key = Rails.application.secrets.errbit_key || ''
|
config.api_key = Rails.application.secrets.errbit_key || ''
|
||||||
config.host = CONFIG['errbit_host'] || ''
|
config.host = Rails.application.secrets.errbit_host || ''
|
||||||
if config.api_key.blank? || config.host.blank?
|
if config.api_key.blank? || config.host.blank?
|
||||||
config.development_environments = 'production development test'
|
config.development_environments = 'production development test'
|
||||||
else
|
else
|
||||||
config.development_environments = 'development test'
|
config.development_environments = 'development test'
|
||||||
end
|
end
|
||||||
|
|
||||||
config.ignore_only = %w{
|
config.ignore_only = %w{
|
||||||
Some::ExceptionName
|
Some::ExceptionName
|
||||||
}
|
}
|
||||||
|
|
||||||
config.ignore_by_filter do |exception_data|
|
config.ignore_by_filter do |exception_data|
|
||||||
ret=false
|
ret=false
|
||||||
if exception_data[:error_class] == 'ActionController::RoutingError'
|
if exception_data[:error_class] == 'ActionController::RoutingError'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue