From e373799b01084934587ae8314d4e8ce201d31bfb Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Wed, 21 Sep 2022 13:35:05 +0300 Subject: [PATCH] Move fun_with_flags config from runtime.exs to config.exs Getting this error when running the release: ERROR! the application :fun_with_flags has a different value set for key :persistence during runtime compared to compile time. Since this application environment entry was marked as compile time, this difference can lead to different behaviour than expected: * Compile time value was not set * Runtime value was set to: [adapter: FunWithFlags.Store.Persistent.Ecto, repo: Plausible.Repo] --- config/config.exs | 6 ++++++ config/runtime.exs | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/config.exs b/config/config.exs index 055bfc543..369b11b00 100644 --- a/config/config.exs +++ b/config/config.exs @@ -28,6 +28,12 @@ config :plausible, session_timeout: 1000 * 60 * 30, session_length_minutes: 30 +config :fun_with_flags, :cache_bust_notifications, enabled: false + +config :fun_with_flags, :persistence, + adapter: FunWithFlags.Store.Persistent.Ecto, + repo: Plausible.Repo + config :plausible, Plausible.ClickhouseRepo, loggers: [Ecto.LogEntry] config :plausible, Plausible.Repo, diff --git a/config/runtime.exs b/config/runtime.exs index 0730f7861..cf27a6b5a 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -212,12 +212,6 @@ else database: get_var_from_path_or_env(config_dir, "DATABASE_NAME", "plausible") end -config :fun_with_flags, :cache_bust_notifications, enabled: false - -config :fun_with_flags, :persistence, - adapter: FunWithFlags.Store.Persistent.Ecto, - repo: Plausible.Repo - included_environments = if sentry_dsn, do: ["prod", "staging", "dev"], else: [] config :sentry,