Changeset View
Changeset View
Standalone View
Standalone View
config/dev.exs
use Mix.Config | use Mix.Config | ||||
# For development, we disable any cache and enable | # For development, we disable any cache and enable | ||||
# debugging and code reloading. | # debugging and code reloading. | ||||
# | # | ||||
# The watchers configuration can be used to run external | # The watchers configuration can be used to run external | ||||
# watchers to your application. For example, we use it | # watchers to your application. For example, we use it | ||||
# with brunch.io to recompile .js and .css sources. | # with brunch.io to recompile .js and .css sources. | ||||
config :kolab_chat, KolabChat.Endpoint, | config :kolab_chat, KolabChat.Web.Endpoint, | ||||
http: [port: 4000], | http: [port: 4000], | ||||
debug_errors: true, | debug_errors: true, | ||||
code_reloader: true, | code_reloader: true, | ||||
check_origin: false, | check_origin: false, | ||||
watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin", | watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin", | ||||
cd: Path.expand("../", __DIR__)]] | cd: Path.expand("../assets", __DIR__)]] | ||||
# Watch static and templates for browser reloading. | # Watch static and templates for browser reloading. | ||||
config :kolab_chat, KolabChat.Endpoint, | config :kolab_chat, KolabChat.Web.Endpoint, | ||||
live_reload: [ | live_reload: [ | ||||
patterns: [ | patterns: [ | ||||
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$}, | ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$}, | ||||
~r{priv/gettext/.*(po)$}, | ~r{priv/gettext/.*(po)$}, | ||||
~r{web/views/.*(ex)$}, | ~r{lib/kolab_chat/web/views/.*(ex)$}, | ||||
~r{web/templates/.*(eex)$} | ~r{lib/kolab_chat/web/templates/.*(eex)$} | ||||
] | ] | ||||
] | ] | ||||
# Do not include metadata nor timestamps in development logs | # Do not include metadata nor timestamps in development logs | ||||
config :logger, :console, format: "[$level] $message\n" | config :logger, :console, format: "[$level] $message\n" | ||||
# Set a higher stacktrace during development. Avoid configuring such | # Set a higher stacktrace during development. Avoid configuring such | ||||
# in production as building large stacktraces may be expensive. | # in production as building large stacktraces may be expensive. | ||||
config :phoenix, :stacktrace_depth, 20 | config :phoenix, :stacktrace_depth, 20 |