Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (17 sloc) 0.853 kB
6c000e7 @jyurek Added INSTALL to display config info when the plugin is installed.
jyurek authored
1 === Configuration
2
81cd20a Updated README, fixed JS rescue template missed HT reference.
Jonathan Siegel authored
3 You should have something like this in config/initializers/airbrake.rb.
6c000e7 @jyurek Added INSTALL to display config info when the plugin is installed.
jyurek authored
4
81cd20a Updated README, fixed JS rescue template missed HT reference.
Jonathan Siegel authored
5 Airbrake.configure do |config|
6c000e7 @jyurek Added INSTALL to display config info when the plugin is installed.
jyurek authored
6 config.api_key = '1234567890abcdef'
7 end
8
9 (Please note that this configuration should be in a global configuration, and
81cd20a Updated README, fixed JS rescue template missed HT reference.
Jonathan Siegel authored
10 is *not* environment-specific. Airbrake is smart enough to know what errors are
6c000e7 @jyurek Added INSTALL to display config info when the plugin is installed.
jyurek authored
11 caused by what environments, so your staging errors don't get mixed in with
12 your production errors.)
13
81cd20a Updated README, fixed JS rescue template missed HT reference.
Jonathan Siegel authored
14 You can test that Airbrake is working in your production environment by using
6c000e7 @jyurek Added INSTALL to display config info when the plugin is installed.
jyurek authored
15 this rake task (from RAILS_ROOT):
16
81cd20a Updated README, fixed JS rescue template missed HT reference.
Jonathan Siegel authored
17 rake airbrake:test
6c000e7 @jyurek Added INSTALL to display config info when the plugin is installed.
jyurek authored
18
81cd20a Updated README, fixed JS rescue template missed HT reference.
Jonathan Siegel authored
19 If everything is configured properly, that task will send a notice to Airbrake
6c000e7 @jyurek Added INSTALL to display config info when the plugin is installed.
jyurek authored
20 which will be visible immediately.
21
22 NOTE FOR RAILS 1.2.* USERS:
23
81cd20a Updated README, fixed JS rescue template missed HT reference.
Jonathan Siegel authored
24 You will need to copy the airbrake_tasks.rb file into your
25 RAILS_ROOT/lib/tasks directory in order for the rake airbrake:test task to work.
Something went wrong with that request. Please try again.