Bugfix Makefile help target

pull/20/head
JensDiemer 2020-11-11 17:58:44 +01:00
rodzic c7beb9e9d6
commit ce0e9a3991
2 zmienionych plików z 16 dodań i 5 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
SHELL := /bin/bash
help: ## List all commands
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9 -]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9 -_]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
check-poetry:
@if [[ "$(shell poetry --version 2>/dev/null)" == *"Poetry"* ]] ; \
@ -107,16 +107,16 @@ dbrestore: ## Restore a database backup
restart: down up ## Restart all containers
upgrade_inventory: ## Upgrade "inventory" container and restart it
upgrade_inventory: ## Upgrade "inventory" container and restart it
$(MAKE) build
./compose.sh stop inventory
$(MAKE) up
reload_inventory: ## Reload server in "inventory" container
reload_inventory: ## Reload server in "inventory" container
./compose.sh exec inventory ./docker/kill_python.sh
./compose.sh logs --tail=500 --follow inventory
restart_caddy: ## Restart caddy container
restart_caddy: ## Restart caddy container
./compose.sh stop caddy
$(MAKE) up

Wyświetl plik

@ -104,16 +104,27 @@ install some base packages, e.g.:
help List all commands
install-poetry install or update poetry
install install requirements to setup project
update update the sources and installation
update update the sources and docker containers
up Start containers via docker-compose
down Stop all containers
prune Cleanup docker
build Update docker container build
init_postgres Create postgres database
createsuperuser Create super user
shell_inventory Go into bash shell in inventory container
shell_postgres Go into bash shell in postgres container
shell_caddy Go into bash shell in caddy container
caddy_environ Prints the caddy environment
logs Display docker logs from all containers
logs_postgres Display docker logs from postgres container
logs_inventory Display docker logs from inventory container
logs_caddy Display docker logs from caddy container
dbbackup Backup database
dbrestore Restore a database backup
restart Restart all containers
upgrade_inventory Upgrade "inventory" container and restart it
reload_inventory Reload server in "inventory" container
restart_caddy Restart caddy container
}}}
Install, e.g.: