Skip to content

Commit 60654f2

Browse files
author
bmarkons
committed
Check if SENTRY_DSN env exist in precompilation
1 parent 0dafd7f commit 60654f2

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

config/application.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ class Application < Rails::Application
2020
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
2121
# config.i18n.default_locale = :de
2222
config.active_job.queue_adapter = :sidekiq
23-
config.assets.initialize_on_precompile = false
2423
end
2524
end

config/initializers/sentry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
if Rails.env.production?
1+
if Rails.env.production? && ENV['SENTRY_DSN']
22
Raven.configure { |config| config.dsn = ENV['SENTRY_DSN'] }
33
end

0 commit comments

Comments
 (0)