Skip to content

Commit

Permalink
make: add more dev targets
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Apr 2, 2024
1 parent 534d60a commit 95fb661
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 95fb661

Please sign in to comment.