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]
pull/2259/head
Uku Taht 4 years ago
parent 3d54b88f0a
commit e373799b01

@ -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,

@ -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,

Loading…
Cancel
Save