From 95fb6612431b561e09757287a93a7d6c8323fa88 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Tue, 2 Apr 2024 19:28:22 +0200 Subject: [PATCH] make: add more dev targets --- docker/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker/Makefile b/docker/Makefile index 802ace8..8fa1907 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -12,11 +12,17 @@ fetch-db: $(DOCKER_COMPOSE) run --rm app su -c "cp data/mydb.db apps/qownnotesapi" www-data push-db: - $(DOCKER_COMPOSE) run --rm app su -c "cp apps/qownnotesapi/mydb.db data" www-data + $(DOCKER_COMPOSE) run --rm app su -c "cp apps/qownnotesapi/mydb.db* data" www-data bash: $(DOCKER_COMPOSE) run --rm app su -c "bash" www-data +bash-root: + $(DOCKER_COMPOSE) run --rm app bash + +maintenance-mode-off: + $(DOCKER_COMPOSE) run --rm app su -c "./occ maintenance:mode --off" www-data + check-code: $(DOCKER_COMPOSE) run --rm app su -c "./occ app:check-code qownnotesapi" www-data @@ -31,3 +37,6 @@ test: show-log: $(DOCKER_COMPOSE) run --rm app tail -f /var/www/html/data/nextcloud.log + +remove-volumes: + docker volume rm nextcloud-qownnotesapi_nextcloud