accent/config/dev.exs

41 lines
894 B
Elixir
Raw Normal View History

import Config
watchers =
2022-08-26 04:15:00 +03:00
if System.get_env("DISABLE_DEV_WATCHERS") do
[]
else
[
npm: [
"run",
"build-dev",
cd: Path.expand("../webapp", __DIR__)
2024-02-27 05:39:45 +03:00
],
npm: [
"run",
"watch-production-inline",
cd: Path.expand("../jipt", __DIR__)
]
2020-08-30 01:06:27 +03:00
]
end
2021-12-23 06:14:00 +03:00
config :accent, Accent.Endpoint,
debug_errors: true,
code_reloader: true,
cache_static_lookup: false,
check_origin: false,
watchers: watchers,
2020-09-30 15:09:12 +03:00
live_reload: [
patterns: [
~r{priv/gettext/.*$},
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$}
]
2020-08-30 01:06:27 +03:00
]
2018-04-05 23:47:36 +03:00
config :logger, :console,
format: "$metadata[$level] $message\n",
metadata: ~w(current_user graphql_operation hook_service hook_url)a
2018-04-05 23:47:36 +03:00
2020-11-11 02:16:24 +03:00
config :accent, Accent.Repo, url: System.get_env("DATABASE_URL") || "postgres://localhost/accent_development"
2018-04-05 23:47:36 +03:00
config :phoenix, :stacktrace_depth, 20