LAN stack gives out its LAN address: dev-lan sets FRONTEND_HOST to the published port on the host's default-route address, so the Panels dialog links a screen somewhere it can reach instead of app.localhost
This commit is contained in:
@@ -81,8 +81,12 @@ dev-local: ## Start the local stack at http://app.localhost (also run by the ro
|
||||
DOMAIN=$${DOMAIN:-localhost} ENVIRONMENT=$${ENVIRONMENT:-local} \
|
||||
$(COMPOSE_LOCAL) up --build -d proxy backend frontend docs mailcatcher
|
||||
|
||||
# The host's LAN address is the source of its default route. Without `ip`
|
||||
# (macOS) it stays empty and the instance keeps calling itself app.$(DOMAIN).
|
||||
dev-lan: ## Same, plus the app on http://<host-ip>:$(APP_PORT) (no DNS needed)
|
||||
@ip=$$(ip route get 1.1.1.1 2>/dev/null | sed -n 's/.* src \([0-9.]*\).*/\1/p'); \
|
||||
DOMAIN=$${DOMAIN:-localhost} ENVIRONMENT=$${ENVIRONMENT:-local} APP_PORT=$(APP_PORT) \
|
||||
LAN_URL=$${ip:+http://$$ip:$(APP_PORT)} \
|
||||
$(COMPOSE_LAN) up --build -d proxy backend frontend mailcatcher
|
||||
|
||||
# The frontend is an nginx image, so a UI change needs a rebuild. Both the
|
||||
|
||||
Reference in New Issue
Block a user