diff --git a/config/runtime.exs b/config/runtime.exs index b9df0d4..aafe5d3 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -1,5 +1,12 @@ import Config -# this config is loaded when in release mode +IO.puts("==========================") +IO.puts("== APPLYING RUNTIME CONFIG ==") +IO.puts("==========================") -import_config("prod.exs") +config :archethic_fas, ArchethicFAS.Quotes.Provider.CoinMarketCap, + key: System.get_env("ARCHETHIC_CMC_PRO_API_KEY"), + endpoint: "pro-api.coinmarketcap.com" + +config :archethic_fas, + api_port: System.get_env("ARCHETHIC_FAS_PORT", "3000") |> String.to_integer()