Skip to content

Instantly share code, notes, and snippets.

@benyblack
Created November 17, 2019 18:01
Show Gist options
  • Save benyblack/f40c8f96bc3c53d30046635af28e8f5c to your computer and use it in GitHub Desktop.
Save benyblack/f40c8f96bc3c53d30046635af28e8f5c to your computer and use it in GitHub Desktop.
import Config
config :logger, level: :info
secret_key_base = System.fetch_env!("SECRET_BASE_KEY")
db_user = System.fetch_env!("DB_USERNAME")
db_pwd = System.fetch_env!("DB_PASSWORD")
db_name = System.fetch_env!("DB_NAME")
db_host = System.fetch_env!("DB_HOST")
config :hello_world_ci, HelloWorldCiWeb.Endpoint,
server: true,
secret_key_base: secret_key_base
config :hello_world_ci, HelloWorldCi.Repo,
username: db_user,
password: db_pwd,
database: db_name,
hostname: db_host,
pool_size: 15,
ssl: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment