-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (43 loc) · 1.19 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
default: test
test:
python ./manage.py test -d
coverage:
@# pip install coverage
coverage run --source='.' manage.py test
coverage report -m
serve:
python ./manage.py runserver_plus
install:
pip install -r requirements/requirements-all.txt
setupdev:
python ./manage.py check
python ./manage.py createsuperuser --noinput --username=admin --email=admin@local.local
@# python ./manage.py changepassword admin
@# django-extensions
python ./manage.py set_fake_passwords
#python ./manage.py set_default_site --system-fqdn
$(MAKE) migrate
#python ./manage.py generate_secret_key
collectstatic:
python ./manage.py collectstatic --no-input # STATIC_ROOT
migrate:
python ./manage.py migrate -v3
dumpdata:
python ./manage.py dumpdata --all \
| python -mjson.tool > djangotestapp/fixtures/dump.json
rebuild_index:
python ./manage.py rebuild_index --noinput
elasticsearch-serve:
./bin/elasticsearch -Dpath.data="${_VAR}/es/data" -Dpath.logs="${_LOG}/es"
composeps:
docker-compose ps
composeup:
docker-compose up -d
docker-compose ps
composedown:
docker-compose down
docker-compose ps
composebuild:
docker-compose build app
composebuild-no-cache:
docker-compose build --no-cache app