From 9f446c83fdfe3e62b660d97fbb9738a9044f4396 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 28 May 2020 21:31:38 +0300 Subject: [PATCH] Use ENVIRONMENT for sentry in runtime config --- config/config.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.exs b/config/config.exs index 396b70133..eaebd6492 100644 --- a/config/config.exs +++ b/config/config.exs @@ -38,7 +38,7 @@ config :plausible, PlausibleWeb.Endpoint, config :sentry, dsn: System.get_env("SENTRY_DSN"), included_environments: [:prod, :staging], - environment_name: String.to_atom(Map.get(System.get_env(), "MIX_ENV", "dev")), + environment_name: String.to_atom(Map.get(System.get_env(), "ENVIRONMENT", "dev")), enable_source_code_context: true, root_source_code_path: File.cwd!(), tags: %{app_version: System.get_env("APP_VERSION", "0.0.1")},