dev server access for other machines and ignore new labels for hot reloads
This commit is contained in:
@@ -9,7 +9,7 @@ import Config
|
|||||||
config :labelmaker, LabelmakerWeb.Endpoint,
|
config :labelmaker, LabelmakerWeb.Endpoint,
|
||||||
# Binding to loopback ipv4 address prevents access from other machines.
|
# Binding to loopback ipv4 address prevents access from other machines.
|
||||||
# Change to `ip: {0, 0, 0, 0}` to allow 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,
|
check_origin: false,
|
||||||
code_reloader: true,
|
code_reloader: true,
|
||||||
debug_errors: true,
|
debug_errors: true,
|
||||||
@@ -46,7 +46,7 @@ config :labelmaker, LabelmakerWeb.Endpoint,
|
|||||||
config :labelmaker, LabelmakerWeb.Endpoint,
|
config :labelmaker, LabelmakerWeb.Endpoint,
|
||||||
live_reload: [
|
live_reload: [
|
||||||
patterns: [
|
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"priv/gettext/.*(po)$",
|
||||||
~r"lib/labelmaker_web/(controllers|live|components)/.*(ex|heex)$"
|
~r"lib/labelmaker_web/(controllers|live|components)/.*(ex|heex)$"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user