forked from renatoliveira/notto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 933 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
39
40
.PHONY: install lint test venv run build
lint:
flake8
install:
pip install -r requirements.txt
test:
python notto/manage.py test notto --settings=notto.settings.development
venv:
python3 -m venv nottoenv
source:
. nottoenv/bin/activate
makemigrations:
python notto/manage.py makemigrations nottoapp
migrate:
python notto/manage.py migrate --run-syncdb
run:
python notto/manage.py makemigrations --settings=notto.settings.development
python notto/manage.py migrate --settings=notto.settings.development
python notto/manage.py runserver --settings=notto.settings.development
run-production:
python notto/manage.py makemigrations --settings=notto.settings.production
python notto/manage.py migrate --settings=notto.settings.production
python notto/manage.py runserver --settings=notto.settings.production
build:
$(MAKE) venv
$(MAKE) source
$(MAKE) install
$(MAKE) makemigrations
$(MAKE) migrate
$(MAKE) run