config/prod.secret.exs. , , .
use Mix.Config
config :trope_api, MyApp.Endpoint,
secret_key_base: "SOMEVERYLONGSTRING"
config/prod.exs
import_config "prod.secret.exs"
, , - , .
:
config :my_app, MyApp,
test_value: System.get_env("TESTCONFIG")
$ PORT=4001 MIX_ENV=prod TESTCONFIG=testvalue mix phoenix.server
, . .env ( ) .gitignore. , :
export TESTCONFIG="Test Config Value"
export OTHERTESTCONFIG="Other Test Config Value"
source .env . . , , , . , , .env (db ..).
.env , .