-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 884 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
help:
@echo 'venv - create virtualenv venv-folder'
@echo 'brus/settings/local.py - create development local.py'
@echo 'production - deploy production (used by chewie)'
@echo 'development - install dev requirements, setup local.py and run migrations
venv:
virtualenv -p `which python3` venv
brus/settings/local.py:
echo "from .development import *" > brus/settings/local.py
development: brus/settings/local.py
venv/bin/pip install -r requirements/dev.txt --upgrade
venv/bin/python manage.py migrate
production:
git fetch && git reset --hard origin/master
venv/bin/pip install -r requirements/prod.txt --upgrade
venv/bin/python manage.py migrate
fixme:
docker run --rm -v ${PWD}:/code -it python:3.7-slim "bash" "-c" "cd /code && pip install black isort && isort -rc brus && black brus"
.PHONY: help development production docs fixme