-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 901 Bytes
/
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
django_folder=cd musicstore;
clean:
@find . -name "*.pyc" -delete
deps:
@pip install -r requirements.txt
setup: clean deps
@$(django_folder) python manage.py syncdb --noinput
@$(django_folder) python manage.py migrate
@$(django_folder) python manage.py createsuperuser --email="[email protected]"
@make run
migrate: clean deps
@$(django_folder) python manage.py syncdb
@$(django_folder) python manage.py migrate
run: clean
@$(django_folder) python manage.py runserver
flake8:
@flake8 . --exclude='.*migrations' --ignore=E124,E128
remote_migrate:
@heroku run python musicstore/manage.py syncdb --noinput
@heroku run python musicstore/manage.py migrate
collectstatic:
@heroku run python musicstore/manage.py collectstatic --noinput
heroku:
@git push heroku master
deploy: heroku remote_migrate collectstatic
help:
grep '^[^#[:space:]].*:' Makefile | awk -F ":" '{print $$1}'