2019-08-24 13:19:11 +00:00
|
|
|
use Mix.Config
|
|
|
|
|
|
|
|
config :ui, UiWeb.Endpoint,
|
|
|
|
url: [host: "localhost"],
|
|
|
|
secret_key_base: "FkfuB09FEncz4aAi6hS6w5bsNast+D1P12MckXr5dlRdhtFJrKqgEhvhpTU3qzgh",
|
|
|
|
render_errors: [view: UiWeb.ErrorView, accepts: ~w(html json)],
|
|
|
|
http: [port: 4000],
|
|
|
|
server: true,
|
|
|
|
debug_errors: true,
|
|
|
|
code_reloader: true,
|
|
|
|
check_origin: false,
|
|
|
|
watchers: [
|
|
|
|
node: [
|
|
|
|
"node_modules/webpack/bin/webpack.js",
|
|
|
|
"--mode",
|
|
|
|
"development",
|
|
|
|
"--watch-stdin",
|
|
|
|
cd: Path.expand("../assets", __DIR__)
|
|
|
|
]
|
2019-10-23 12:38:11 +00:00
|
|
|
],
|
2019-08-24 13:19:11 +00:00
|
|
|
live_reload: [
|
|
|
|
patterns: [
|
|
|
|
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
|
|
|
|
~r"priv/gettext/.*(po)$",
|
|
|
|
~r"lib/ui_web/{live,views}/.*(ex)$",
|
2019-10-23 12:38:11 +00:00
|
|
|
~r"lib/ui_web/templates/.*(eex)$",
|
|
|
|
~r{lib/ui_web/live/.*(ex)$}
|
2019-08-24 13:19:11 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
# Set a higher stacktrace during development. Avoid configuring such
|
|
|
|
# in production as building large stacktraces may be expensive.
|
|
|
|
config :phoenix, :stacktrace_depth, 20
|
|
|
|
|
|
|
|
# Initialize plugs at runtime for faster development compilation
|
|
|
|
config :phoenix, :plug_init_mode, :runtime
|