added hoptoad support, API key read from application.yml
This commit is contained in:
parent
215fdf6550
commit
aac72b12e7
5 changed files with 17 additions and 0 deletions
2
Gemfile
2
Gemfile
|
|
@ -67,6 +67,8 @@ gem 'jammit', '0.5.4'
|
|||
gem 'rest-client', '1.6.1'
|
||||
gem 'typhoeus'
|
||||
|
||||
#Reporting
|
||||
gem 'hoptoad_notifier'
|
||||
gem 'newrelic_rpm', :require => false
|
||||
|
||||
#Backups
|
||||
|
|
|
|||
|
|
@ -211,6 +211,9 @@ GEM
|
|||
haml (3.1.2)
|
||||
hashie (1.0.0)
|
||||
highline (1.6.2)
|
||||
hoptoad_notifier (2.4.11)
|
||||
activesupport
|
||||
builder
|
||||
http_connection (1.4.1)
|
||||
i18n (0.5.0)
|
||||
i18n-inflector (2.6.2)
|
||||
|
|
@ -477,6 +480,7 @@ DEPENDENCIES
|
|||
foreigner (= 0.9.1)
|
||||
fuubar
|
||||
haml (= 3.1.2)
|
||||
hoptoad_notifier
|
||||
http_accept_language!
|
||||
i18n-inflector-rails (~> 1.0)
|
||||
jammit (= 0.5.4)
|
||||
|
|
|
|||
|
|
@ -138,6 +138,9 @@ defaults: &defaults
|
|||
featured_users:
|
||||
- 'diasporahq@joindiaspora.com'
|
||||
|
||||
#Hoptoad api key
|
||||
hoptoad_api_key: ''
|
||||
|
||||
# Use this section to override default settings in specific environments
|
||||
development:
|
||||
<<: *defaults
|
||||
|
|
|
|||
|
|
@ -81,3 +81,6 @@ namespace :deploy do
|
|||
end
|
||||
|
||||
after "deploy:symlink", "deploy:symlink_config_files", "deploy:symlink_cookie_secret", "deploy:bundle_static_assets"
|
||||
|
||||
require './config/boot'
|
||||
require 'hoptoad_notifier/capistrano'
|
||||
|
|
|
|||
5
config/initializers/hoptoad.rb
Normal file
5
config/initializers/hoptoad.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
if AppConfig[:hoptoad_api_key].present?
|
||||
HoptoadNotifier.configure do |config|
|
||||
config.api_key = AppConfig[:hoptoad_api_key]
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue