forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
%pre | ||
%code | ||
:preserve | ||
%code | ||
:preserve | ||
# Require the hoptoad_notifier gem in your App. | ||
# --------------------------------------------- | ||
# | ||
# Rails 3 - In your Gemfile | ||
# gem 'airbrake' | ||
# | ||
# Rails 2 - In environment.rb | ||
# config.gem 'airbrake' | ||
# | ||
# Then add the following to config/initializers/errbit.rb | ||
# ------------------------------------------------------- | ||
|
||
# Require the hoptoad_notifier gem in your App. | ||
# --------------------------------------------- | ||
# | ||
# Rails 3 - In your Gemfile | ||
# gem 'airbrake' | ||
# | ||
# Rails 2 - In environment.rb | ||
# config.gem 'airbrake' | ||
# | ||
# Then add the following to config/initializers/errbit.rb | ||
# ------------------------------------------------------- | ||
Airbrake.configure do |config| | ||
config.api_key = '#{app.api_key}' | ||
config.host = '#{request.host}' | ||
config.port = #{request.port} | ||
config.secure = config.port == 443 | ||
end | ||
|
||
Airbrake.configure do |config| | ||
config.api_key = '#{app.api_key}' | ||
config.host = '#{request.host}' | ||
config.port = #{request.port} | ||
config.secure = config.port == 443 | ||
end | ||
|
||
# Set up Javascript notifications | ||
# ------------------------------- | ||
# | ||
# To receive notifications for javascript errors, | ||
# you should add <%= airbrake_javascript_notifier %> to the top of your layouts. | ||
# | ||
# Testing | ||
# ------- | ||
# | ||
# Rails 2 - you'll need to vendor airbrake to get the rake tasks | ||
# rake gems:unpack GEM=airbrake | ||
# | ||
# Run: | ||
# rake airbrake:test | ||
# refresh this page | ||
# Set up Javascript notifications | ||
# ------------------------------- | ||
# | ||
# To receive notifications for javascript errors, | ||
# you should add <%= airbrake_javascript_notifier %> to the top of your layouts. | ||
# | ||
# Testing | ||
# ------- | ||
# | ||
# Rails 2 - you'll need to vendor airbrake to get the rake tasks | ||
# rake gems:unpack GEM=airbrake | ||
# | ||
# Run: | ||
# rake airbrake:test | ||
# refresh this page | ||
|