mirror of
https://github.com/mirego/accent.git
synced 2024-08-16 14:30:38 +03:00
41 lines
894 B
Elixir
41 lines
894 B
Elixir
import Config
|
|
|
|
watchers =
|
|
if System.get_env("DISABLE_DEV_WATCHERS") do
|
|
[]
|
|
else
|
|
[
|
|
npm: [
|
|
"run",
|
|
"build-dev",
|
|
cd: Path.expand("../webapp", __DIR__)
|
|
],
|
|
npm: [
|
|
"run",
|
|
"watch-production-inline",
|
|
cd: Path.expand("../jipt", __DIR__)
|
|
]
|
|
]
|
|
end
|
|
|
|
config :accent, Accent.Endpoint,
|
|
debug_errors: true,
|
|
code_reloader: true,
|
|
cache_static_lookup: false,
|
|
check_origin: false,
|
|
watchers: watchers,
|
|
live_reload: [
|
|
patterns: [
|
|
~r{priv/gettext/.*$},
|
|
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$}
|
|
]
|
|
]
|
|
|
|
config :logger, :console,
|
|
format: "$metadata[$level] $message\n",
|
|
metadata: ~w(current_user graphql_operation hook_service hook_url)a
|
|
|
|
config :accent, Accent.Repo, url: System.get_env("DATABASE_URL") || "postgres://localhost/accent_development"
|
|
|
|
config :phoenix, :stacktrace_depth, 20
|