mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 23:27:54 +03:00
671904aefd
* Enable JSON log formatting if `LOG_FORMAT=json` is set, the app will start logging JSON-formatted messages. By the way, the Repo :loggers configration was removed since it's been already deprecated by Ecto v3 (https://hexdocs.pm/ecto/changelog.html#deprecations-4). * Update changelog
26 lines
681 B
Elixir
26 lines
681 B
Elixir
import Config
|
|
|
|
config :plausible, PlausibleWeb.Endpoint,
|
|
server: true,
|
|
debug_errors: true,
|
|
code_reloader: true,
|
|
check_origin: false,
|
|
watchers: [
|
|
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
|
|
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]},
|
|
npm: [
|
|
"run",
|
|
"deploy",
|
|
cd: Path.expand("../tracker", __DIR__)
|
|
]
|
|
],
|
|
live_reload: [
|
|
patterns: [
|
|
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
|
|
~r"lib/plausible_web/(controllers|live|components|templates|views|plugs)/.*(ex|heex)$"
|
|
]
|
|
]
|
|
|
|
config :phoenix, :stacktrace_depth, 20
|
|
config :phoenix, :plug_init_mode, :runtime
|