mirror of
https://github.com/mirego/accent.git
synced 2024-09-11 10:55:28 +03:00
Fix sentry setup
This commit is contained in:
parent
7ea785895c
commit
81f11118b3
@ -25,11 +25,6 @@ config :canary,
|
||||
|
||||
config :phoenix, :json_library, Jason
|
||||
|
||||
config :sentry,
|
||||
included_environments: [:prod],
|
||||
root_source_code_path: File.cwd!(),
|
||||
release: version
|
||||
|
||||
config :tesla,
|
||||
auth_enabled: true,
|
||||
adapter: Tesla.Adapter.Hackney
|
||||
|
@ -1,5 +1,7 @@
|
||||
import Config
|
||||
|
||||
version = Mix.Project.config()[:version]
|
||||
|
||||
defmodule Utilities do
|
||||
def string_to_boolean("true"), do: true
|
||||
def string_to_boolean("1"), do: true
|
||||
@ -99,10 +101,6 @@ config :accent, Accent.WebappView,
|
||||
sentry_dsn: System.get_env("WEBAPP_SENTRY_DSN") || "",
|
||||
skip_subresource_integrity: System.get_env("WEBAPP_SKIP_SUBRESOURCE_INTEGRITY") || false
|
||||
|
||||
config :sentry,
|
||||
dsn: System.get_env("SENTRY_DSN"),
|
||||
environment_name: System.get_env("SENTRY_ENVIRONMENT_NAME")
|
||||
|
||||
if System.get_env("GOOGLE_TRANSLATIONS_SERVICE_ACCOUNT_KEY") do
|
||||
config :goth, json: System.get_env("GOOGLE_TRANSLATIONS_SERVICE_ACCOUNT_KEY")
|
||||
else
|
||||
@ -113,6 +111,13 @@ config :tesla, logger_enabled: true
|
||||
|
||||
if !System.get_env("SENTRY_DSN") do
|
||||
config :sentry, included_environments: []
|
||||
else
|
||||
config :sentry,
|
||||
dsn: System.get_env("SENTRY_DSN"),
|
||||
environment_name: System.get_env("SENTRY_ENVIRONMENT_NAME"),
|
||||
included_environments: ~w(production),
|
||||
root_source_code_path: File.cwd!(),
|
||||
release: version
|
||||
end
|
||||
|
||||
config :accent, Accent.Mailer,
|
||||
|
Loading…
Reference in New Issue
Block a user