http://morizyun.github.io/blog/errbit-heroku-rails-error-ruby/
https://github.com/errbit/errbit/blob/master/docs/deployment/heroku.md
Download the source of Errbit locally.
Run Bundle install Following.
db / seeds.rb
Fixed login settings.
Then do the Enabling and various settings of the add-on.
When you have finished setting screen, then push to heroku.
In addition, it allows you to load the seed file (initial setting data of the DB).
Add the index to mongo DB.
after that when you run the following command, you will see the page of errbit in your browser.
http://blog.8thcolor.com/en/2014/02/get-notified-of-your-rails-app-exceptions-with-errbit/
IN RAILS APP
gem 'airbrake'
create file config / initializers / errbit.Rb
copy paste the the info you got in Errbit > Apps
something likes
Airbrake.configure do |config| config.api_key = ENV['ERRBIT_API_KEY'] config.host = ENV['ERRBIT_HOST'] config.port = 80 config.secure = config.port == 443 config.environment_name = Rails.env.production? ? `hostname` : Rails.env end
run bundle install after setting down above.
then,
rake airbrake:test
adding
ERRBIT_API_KEY ERRBIT_HOST to heroku
heroku config:set ERRBIT_HOST=
heroku config:set ERRBIT_API_KEY=
heroku run bundle exec rake airbrake:test
沒有留言:
張貼留言