-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (45 loc) · 1.05 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
.PHONY: runserver
runserver:
python manage.py runserver vps123446.vps.ovh.ca:8080
.PHONY: clean
clean:
find . -name "__pycache__" -exec rm -rf "{}" \;
find . -name "*.pyc" -delete
find . -name ".DS_Store" -delete
rm -rf .coverage
.PHONY: distclean
distclean: clean
rm -rf db.sqlite3
.PHONY: deps-upgrade
deps-upgrade:
pip install -r requirements.txt --upgrade
.PHONY: deps
deps: deps-upgrade
pip install -r requirements.txt
pip freeze > requirements.txt
.PHONY: shell
shell:
python manage.py shell
.PHONY: test
test:
python manage.py test --keepdb -v2
.PHONY: cover
cover:
coverage run --source=tlksio,talks manage.py test
coverage report
.PHONY: migrate
migrate:
python manage.py makemigrations
python manage.py migrate
.PHONY: uwsgi
uwsgi:
/usr/local/bin/uwsgi --chdir=/home/raul/tlksio \
--module=wsgi:application \
--master --pidfile=/tmp/project-master.pid \
--socket :8080 \
--processes=5 \
--max-requests=5000 \
--vacuum \
--home=/home/raul/tlksio/env
# --http 127.0.0.1:8080
# daemonize=/home/raul/tlksio/yourproject.log