make update warns when .env lacks a key compose would default, like make up
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,
|
# 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
|
# 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
|
dev dev-local dev-lan up: env-check
|
||||||
env-check:
|
env-check:
|
||||||
@missing=$$(grep -ohE '\$$\{[A-Z_]+:?-' docker/compose*.yml | sed 's/^..//; s/:\{0,1\}-$$//' | sort -u \
|
@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
|
update: ## Pull, rebuild using the layer cache, and recreate changed containers
|
||||||
git pull
|
git pull
|
||||||
|
@$(MAKE) --no-print-directory env-check
|
||||||
$(COMPOSE_PROD_RUN) build
|
$(COMPOSE_PROD_RUN) build
|
||||||
$(COMPOSE_PROD_RUN) up -d --remove-orphans
|
$(COMPOSE_PROD_RUN) up -d --remove-orphans
|
||||||
docker image prune -f
|
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.
|
refuse `changethis` values for the session key or administrator password.
|
||||||
|
|
||||||
Set `TZ` in `.env` for schedules that should follow local time, such as
|
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
|
`Europe/Berlin`. `make up`, `make update` and `make dev` warn when `.env` lacks
|
||||||
key `.env.example` lists that Compose would otherwise default.
|
it, or any other key `.env.example` lists that Compose would otherwise default.
|
||||||
|
|
||||||
## Engine and resources
|
## Engine and resources
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user