mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
40 lines
1.1 KiB
Elixir
40 lines
1.1 KiB
Elixir
import Config
|
|
|
|
# For development, we disable any cache and enable
|
|
# debugging and code reloading.
|
|
#
|
|
# The watchers configuration can be used to run external
|
|
# watchers to your application. For example, we use it
|
|
# with brunch.io to recompile .js and .css sources.
|
|
config :chess, ChessWeb.Endpoint,
|
|
http: [port: 4000],
|
|
debug_errors: true,
|
|
code_reloader: true,
|
|
check_origin: false
|
|
|
|
# Watch static and templates for browser reloading.
|
|
config :chess, ChessWeb.Endpoint,
|
|
live_reload: [
|
|
patterns: [
|
|
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
|
|
~r{priv/gettext/.*(po)$},
|
|
~r{lib/chess_web/views/.*(ex)$},
|
|
~r{lib/chess_web/templates/.*(eex)$}
|
|
]
|
|
]
|
|
|
|
# Do not include metadata nor timestamps in development logs
|
|
config :logger, :console, format: "[$level] $message\n"
|
|
|
|
# Set a higher stacktrace during development. Avoid configuring such
|
|
# in production as building large stacktraces may be expensive.
|
|
config :phoenix, :stacktrace_depth, 20
|
|
|
|
config :chess, Chess.Mailer, adapter: Bamboo.LocalAdapter
|
|
|
|
config :chess, Chess.Repo,
|
|
adapter: Ecto.Adapters.Postgres,
|
|
database: "chess_dev",
|
|
hostname: "localhost",
|
|
pool_size: 10
|