Skip to content

Commit

Permalink
Add consume settings to local env
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Dec 27, 2022
1 parent f1e11ec commit 6625ce8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/consume.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export PAPERLESS_USERNAME=admin
export PAPERLESS_TOKEN=admin
export PAPERLESS_URL=http://localhost:8008
export CONSUME_DIR=./.work/consume
export CONSUME_DELAY=3s
5 changes: 4 additions & 1 deletion test/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ compose_project = paperless-cli
clean_targets += local-uninstall

.PHONY: local-install
local-install: ## Install paperless-ngx in docker-compose
local-install: | $(consume_dir) ## Install paperless-ngx in docker-compose
docker-compose -f $(compose_file) -p $(compose_project) up -d

.PHONY: local-uninstall
local-uninstall: ## Uninstall paperless-ngx in docker-compose
docker-compose -f $(compose_file) -p $(compose_project) rm --force --stop -v

$(consume_dir):
mkdir -p $@

0 comments on commit 6625ce8

Please sign in to comment.