Commit f530e524 authored by Jyrki's avatar Jyrki 🐾

Set up Sentry somewhere else

parent ca1e4a6d
......@@ -125,5 +125,12 @@ module Mastodon
Devise::FailureApp.send :include, HttpAcceptLanguage::EasyAccess
Devise::FailureApp.send :include, Localized
end
sentry_path = Rails.root.join("config/sentry_dsn")
if File.exists?(sentry_path)
Raven.configure do |config|
config.dsn = IO.read(sentry_path).strip
end
end
end
end
path = Rails.root.join("config/sentry_dsn")
return unless File.exists?(path)
Raven.configure do |config|
config.dsn = File.read(path).strip
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment