-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (39 loc) · 1.27 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
check_defined = \
$(strip $(foreach 1,$1, \
$(call __check_defined,$1,$(strip $(value 2)))))
__check_defined = \
$(if $(value $1),, \
$(error Undefined $1$(if $2, ($2))))
.PHONY: list
list:
@awk -F: '!/(check|^if*|^else|^endif)/ && /^[A-z]/ {print $$1}' Makefile
clean:
python manage.py clean_pyc
compile:
python manage.py compile_pyc
celeryd-run:
@celery -A django_study worker -c 2 -D --pidfile=/var/tmp/wiki_c.pid --logfile=/var/tmp/wiki_c.log -E --beat --scheduler django --loglevel=info
celery-kill:
@kill `cat /var/tmp/wiki_c.pid`
celery-run:
@celery -A django_study worker -c 2 -E --beat --scheduler django --loglevel=info
runserver-dev:
@python manage.py runserver
runserver:
@gunicorn --reload django_study.asgi:application -k uvicorn.workers.UvicornWorker
createdatacelerytests:
@python manage.py create_celery_config --force
createdatatests:
@python manage.py create_fake_data --force
requirements:
pip install -r requirements.txt
requirements-tests:
pip install -r requirements-tests.txt
migrate:
python manage.py migrate
docker:
docker kill django-study || true
docker rm -f django-study || true
docker image rm -f django-study:0.0.0 || true
docker build . -t django-study:0.0.0
docker run --name django-study -p 127.0.0.1:8000:8000 django-study:0.0.0