dev server access for other machines and ignore new labels for hot reloads

This commit is contained in:
Gavin McDonald
2025-05-08 14:53:11 -04:00
parent dd3d802760
commit e04d14ec1b

View File

@@ -9,7 +9,7 @@ import Config
config :labelmaker, LabelmakerWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: 4000],
http: [ip: {0, 0, 0, 0}, port: 4000],
check_origin: false,
code_reloader: true,
debug_errors: true,
@@ -46,7 +46,7 @@ config :labelmaker, LabelmakerWeb.Endpoint,
config :labelmaker, LabelmakerWeb.Endpoint,
live_reload: [
patterns: [
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/static/(?!labels/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/gettext/.*(po)$",
~r"lib/labelmaker_web/(controllers|live|components)/.*(ex|heex)$"
]