Unbork Rollbar ENV name

pull/524/head
Rick Carlino 2017-11-03 08:18:37 -05:00
parent a52e132653
commit f967c013e9
1 changed files with 7 additions and 5 deletions

View File

@ -7,9 +7,11 @@
# Our eventual plan is to remove this into its |
# own repo and out of the main app. |
#=================================================+
Rollbar.configure do |config|
config.access_token = ENV['ROLLBAR_ACCESS_TOKEN'] || "NO_ROLLBAR_ACCESS"
config.enabled = Rails.env.production? ? true : false
config.person_method = "current_device"
config.environment = $API_URL || ENV['ROLLBAR_ENV'] || Rails.env
if ENV["ROLLBAR_ACCESS_TOKEN"]
Rollbar.configure do |config|
config.access_token = ENV["ROLLBAR_ACCESS_TOKEN"]
config.enabled = Rails.env.production? ? true : false
config.person_method = "current_device"
config.environment = (ENV["API_HOST"] || $API_URL || ENV["ROLLBAR_ENV"] || Rails.env)
end
end