-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (44 loc) · 1.25 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
.PHONY: help
help:
@echo "Try the targets: clean, install, serve"
.PHONY: clean
clean: clean_db
.PHONY: clean_db
clean_db:
rm -f db.sqlite3
.PHONY: migrate
migrate:
python manage.py migrate
.PHONY: load_fixtures_dev
load_fixtures_dev: load_fixtures
python manage.py loaddata adapt/fixtures/auth.json
python manage.py loaddata adapt/fixtures/clients.json
python manage.py loaddata adapt/fixtures/incomesource.json
.PHONY: load_fixtures
load_fixtures:
python manage.py loaddata adapt/fixtures/audiologists.json
python manage.py loaddata adapt/fixtures/providers.json
python manage.py loaddata adapt/fixtures/settings.json
.PHONY: install
install: clean migrate load_fixtures_dev
.PHONY: dev_requirements
dev_requirements:
pip install -r dev_requirements.txt
.PHONY: test
test:
python manage.py test
.PHONY: serve
serve:
heroku local
.PHONY: check_production_security
check_production_security:
python manage.py check_production_security http://adapt.herokuapp.com
.PHONY: check_production_security_dev
check_production_security_dev:
python manage.py check_production_security http://localhost:5000
.PHONY: heroku_deploy
heroku_deploy:
git push heroku master
heroku run make migrate
heroku run make load_fixtures
heroku run make check_production_security