-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
72 lines (52 loc) · 1.67 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
migrate:
sudo docker-compose run web python manage.py migrate
migrations:
sudo docker-compose run web python manage.py makemigrations $(ARGS)
run:
sudo docker-compose down && sudo docker-compose up
serve:
sudo docker-compose down && sudo docker-compose up -d
devel:
sudo docker-compose -f docker-compose-develop.yml down && sudo docker-compose -f docker-compose-develop.yml up
build:
sudo docker-compose build
createsuperuser:
sudo docker-compose run web python manage.py createsuperuser
collectstatic:
sudo docker-compose run web python manage.py collectstatic
showenv:
sudo docker-compose run web pip list
manage:
sudo docker-compose run web python manage.py $(CMD)
reset_migrations:
sudo find . -path "*/migrations/*.pyc" -delete
sudo find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
init:
make build
make migrations
make migrations ARGS=user
make migrations ARGS=maxquant
make migrations ARGS=api
make migrations ARGS=project
make migrations ARGS=dashboards
make migrate
make createsuperuser
make collectstatic
update:
git pull --recurse-submodules
make build
make migrations
make migrate
down:
sudo docker-compose down
sudo docker-compose -f docker-compose-develop.yml down
test:
sudo docker-compose -f docker-compose-test.yml run web python manage.py test --noinput
get-test-data:
gdown --folder https://drive.google.com/drive/folders/1kdQUXbr6DTBNLFBXLYrR_RLoXDFwCh_N?usp=sharing --output app/tests/data/D01
doc:
mkdocs gh-deploy
schema:
sudo docker-compose -f docker-compose-develop.yml run web python manage.py graph_models --arrow-shape normal -o schema.png -a
versions:
sudo docker-compose run web conda env export -n base