File size: 1,031 Bytes
5470cac |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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
|