-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
74 lines (50 loc) · 1.39 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
bash:
docker-compose run --rm web bash
npm-install:
npm install
npm-build:
npm run build
pull:
docker-compose pull
image:
docker-compose build --pull
build: npm-install npm-build image
clean: stop
docker-compose rm -f
find . -name "*.pyc" -delete
rm -rf jazzband/static/dist
db-migrate:
docker-compose run --rm web flask db migrate
db-upgrade:
docker-compose run --rm web flask db upgrade
redis-cli:
docker-compose run --rm redis redis-cli -h redis
run:
docker-compose up
shell:
docker-compose run --rm web flask shell
start:
docker-compose up -d
stop:
docker-compose stop
compile-update:
docker-compose run --rm web pip-compile -U --allow-unsafe --generate-hashes
update:
docker-compose run --rm web pip install -r requirements.txt
pytest:
docker-compose run --rm web pytest tests/
test: pytest
envvar:
cp .env-dist .env
ci: envvar test
trust:
@command -v mkcert || (echo "mkcert command not found. Please install first, see https://github.com/FiloSottile/mkcert" && exit 1)
mkcert -install
cert: trust
cd certs && mkcert jazzband.local "*.jazzband.local" jazzband.local localhost 127.0.0.1 ::1 && cd ..
generate-securitytxt:
rm jazzband/static/security.txt
gpg --clearsign -u 02DE8F842900411ADD70B1374D87558AF652A00F -o jazzband/static/security.txt jazzband/static/security.txt.tpl
verify-securitytxt:
gpg --verify jazzband/static/security.txt
.PHONY: $(MAKECMDGOALS)