forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (32 loc) · 933 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
COMPOSE=docker-compose -f docker-compose.dev.yml
DEVDOCKER=$(COMPOSE) run --rm app
all: build upgrade web
services:
$(COMPOSE) up -d rabbitmq unoservice postgres elasticsearch
shell: services
$(DEVDOCKER) /bin/bash
test: build
$(DEVDOCKER) contrib/test.sh
upgrade: build
$(COMPOSE) up -d postgres elasticsearch
sleep 4
$(DEVDOCKER) aleph upgrade
$(DEVDOCKER) celery purge -f -A aleph.queues
installdata:
$(DEVDOCKER) aleph installdata
web: services
$(COMPOSE) up api ui
worker: services
$(COMPOSE) run --rm -e ALEPH_EAGER=false app celery -A aleph.queues -B -c 4 -l INFO worker --pidfile /tmp/celery.pid -s /tmp/celerybeat-schedule.db
purge:
$(DEVDOCKER) celery purge -f -A aleph.queues
clean:
$(COMPOSE) down
$(COMPOSE) rm -f
rebuild:
$(COMPOSE) build --pull --no-cache
build:
$(COMPOSE) build
docs:
$(DEVDOCKER) sphinx-build -b html -d docs/_build/doctrees ./docs docs/_build/html
.PHONY: build