Move sentry DSN to config

This commit is contained in:
Tim Perry 2017-03-23 13:10:15 +01:00
parent 88d8112402
commit f05b04a6a1
No known key found for this signature in database
GPG Key ID: 0DDE38AFD3AF94F0
4 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@ Raven = require('raven');
Raven.disableConsoleAlerts();
Raven.config('https://56d2a46124614b01b0f4086897e96110:6e175465accc41b595a96947155f61fb@sentry.io/149239', {
Raven.config(require('./config').sentryDsn, {
captureUnhandledRejections: true,
release: require('../package.json').version
}).install();

2
build/config.js Normal file
View File

@ -0,0 +1,2 @@
// Generated by CoffeeScript 1.12.4
exports.sentryDsn = 'https://56d2a46124614b01b0f4086897e96110:6e175465accc41b595a96947155f61fb@sentry.io/149239';

View File

@ -17,7 +17,7 @@ limitations under the License.
Raven = require('raven')
Raven.disableConsoleAlerts()
Raven.config(
'https://56d2a46124614b01b0f4086897e96110:6e175465accc41b595a96947155f61fb@sentry.io/149239'
require('./config').sentryDsn
captureUnhandledRejections: true
release: require('../package.json').version
).install()

1
lib/config.coffee Normal file
View File

@ -0,0 +1 @@
exports.sentryDsn = 'https://56d2a46124614b01b0f4086897e96110:6e175465accc41b595a96947155f61fb@sentry.io/149239'