make update warns when .env lacks a key compose would default, like make up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -41,7 +41,7 @@ dev dev-utils dev-local dev-lan rebuild-frontend: export DOMAIN ?= localhost
|
||||
|
||||
# A key the template lists and the compose files default, missing from .env,
|
||||
# falls back without a word. For TZ that means every cron runs on UTC. Only a
|
||||
# warning, so a start never fails over it.
|
||||
# warning, so a start never fails over it. `update` runs it after its pull.
|
||||
dev dev-local dev-lan up: env-check
|
||||
env-check:
|
||||
@missing=$$(grep -ohE '\$$\{[A-Z_]+:?-' docker/compose*.yml | sed 's/^..//; s/:\{0,1\}-$$//' | sort -u \
|
||||
@@ -134,6 +134,7 @@ umami: ## Provision + start the optional Umami site-analytics service (idempote
|
||||
|
||||
update: ## Pull, rebuild using the layer cache, and recreate changed containers
|
||||
git pull
|
||||
@$(MAKE) --no-print-directory env-check
|
||||
$(COMPOSE_PROD_RUN) build
|
||||
$(COMPOSE_PROD_RUN) up -d --remove-orphans
|
||||
docker image prune -f
|
||||
|
||||
@@ -121,8 +121,8 @@ stack does. Production disables it entirely. Staging and production also
|
||||
refuse `changethis` values for the session key or administrator password.
|
||||
|
||||
Set `TZ` in `.env` for schedules that should follow local time, such as
|
||||
`Europe/Berlin`. `make up` and `make dev` warn when `.env` lacks it, or any other
|
||||
key `.env.example` lists that Compose would otherwise default.
|
||||
`Europe/Berlin`. `make up`, `make update` and `make dev` warn when `.env` lacks
|
||||
it, or any other key `.env.example` lists that Compose would otherwise default.
|
||||
|
||||
## Engine and resources
|
||||
|
||||
|
||||
Reference in New Issue
Block a user