Current section

Files

Jump to
udia config dev.exs
Raw

config/dev.exs

use Mix.Config
config :udia, :environment, :dev
config :udia, UdiaWeb.Endpoint,
http: [port: 4000],
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: []
config :udia, UdiaWeb.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
~r{lib/udia_web/views/.*(ex)$},
~r{lib/udia_web/templates/.*(eex)$}
]
]
config :logger, :console, format: "[$level] $message\n"
config :phoenix, :stacktrace_depth, 20
config :udia, Udia.Repo,
adapter: Ecto.Adapters.Postgres,
username: System.get_env("POSTGRES_USERNAME") || "postgres",
password: System.get_env("POSTGRES_PASSWORD") || "postgres",
database: System.get_env("POSTGRES_DEV_DB") || "udia_dev",
hostname: System.get_env("POSTGRES_HOSTNAME") || "localhost",
port: System.get_env("POSTGRES_PORT") || "5432",
pool_size: 10
config :guardian, Guardian,
secret_key: "8AkIfrSA1oWLv0n1aX0RnQhn6ID9LnspyqCvaMawQklazG8fgczu94LjVKQtFeAW"