Hexalixir / config /dev.exs
Sergidev's picture
v1.4
5470cac
import Config
# Configure your database
config :hexalixir, HexalixirWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
http: [ip: {127, 0, 0, 1}, port: 7860],
check_origin: false,
code_reloader: true,
debug_errors: true,
secret_key_base: "YOUR_DEV_SECRET_KEY_BASE",
watchers: [
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]},
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]}
]
# Watch static and templates for browser reloading.
config :hexalixir, HexalixirWeb.Endpoint,
live_reload: [
patterns: [
~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
~r"lib/hexalixir_web/(controllers|live|components)/.*(ex|heex)$",
~r"lib/hexalixir_web/templates/.*(eex|heex)$"
]
]
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime