-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathMakefile
46 lines (34 loc) · 1.09 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
# These targets are not files
.PHONY: contribute travis test lint coverage prepare_assets
install:
pip install -r reqs/dev.txt
make prepare_assets
upgrade:
pip install --upgrade -r reqs/dev.txt
make prepare_assets
prepare_assets:
python manage.py bower install
sync:
python manage.py migrate
clean:
# Remove files not in source control
find . -type f -name "*.pyc" -delete
rm -rf nosetests.xml coverage.xml htmlcov violations.txt
todo:
# Look for areas of the code that need updating when some event has taken place
grep --exclude-dir=components -rnH TODO reqs
grep --exclude-dir=components -rnH TODO accountant
grep --exclude-dir=components -rnH TODO tests
## Deployment
deploy_production:
git push --tag origin master
git push heroku master
migrate_production:
heroku run python manage.py migrate --remote heroku
collectstatic_production:
./manage.py collectstatic --noinput
aws s3 sync --acl public-read accountant/static s3://accountantx/static/
# shortcuts for deploy to the production
dp: deploy_production
dmp: deploy_production migrate_production
cp: collectstatic_production