This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
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.
Updated sentry config to be more rational
- Loading branch information
Showing
6 changed files
with
27 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# export SECRET_KEY_BASE='change_me' | ||
# export FB_APP_ID='change_me' | ||
# export FB_APP_SECRET='change_me' |
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
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 |
---|---|---|
|
@@ -17,8 +17,7 @@ class Application < Rails::Application | |
# Set calendar first-day of week to Sunday, since this 'Murica | ||
config.beginning_of_week = :sunday | ||
|
||
Raven.configure do |config| | ||
config.dsn = 'https://bc380f8287694c2d9a3597b374e6dd07:[email protected]/205950' | ||
end | ||
# filtered parameters that won't be sent to sentry | ||
config.filter_parameters << :password | ||
end | ||
end |
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'sentry-raven' | ||
|
||
env = ENV.fetch('RAILS_ENV') { 'development' } | ||
|
||
if env == 'production' | ||
Raven.configure do |config| | ||
dsn = Rails.application.secrets.sentry_dsn | ||
config.dsn = dsn | ||
end | ||
end |
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