Configure secrets at runtime in prod release

This commit is contained in:
Jyri Genral
2021-05-19 21:55:50 +03:00
parent 0d7aa796ce
commit 1fea5fd9f7
2 changed files with 3 additions and 3 deletions

View File

@@ -52,4 +52,4 @@ config :logger, level: :info
# Finally import the config/prod.secret.exs which loads secrets
# and configuration from environment variables.
import_config "prod.secret.exs"
# import_config "prod.secret.exs" # removed for using runtime configuration

View File

@@ -2,7 +2,7 @@
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
use Mix.Config
import Config
database_url =
System.get_env("DATABASE_URL") ||
@@ -35,7 +35,7 @@ config :runosaari, RunosaariWeb.Endpoint,
# If you are doing OTP releases, you need to instruct Phoenix
# to start each relevant endpoint:
#
# config :runosaari, RunosaariWeb.Endpoint, server: true
config :runosaari, RunosaariWeb.Endpoint, server: true
#
# Then you can assemble a release by calling `mix release`.
# See `mix help release` for more information.