-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 910 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
clean:
@find . -name "*.pyc" -exec rm -rf {} \;
@find . -name "__pycache__" -delete
update_requirements:
pip install -U -q pip-tools
pip-compile --output-file=requirements/base/base.txt requirements/base/base.in
pip-compile --output-file=requirements/dev/dev.txt requirements/dev/dev.in
pip-compile --output-file=requirements/deploy/deploy.txt requirements/deploy/deploy.in
install_requirements:
@echo 'Installing pip-tools...'
export PIP_REQUIRE_VIRTUALENV=true; \
pip install -U -q pip-tools
@echo 'Installing requirements...'
pip-sync requirements/base/base.txt requirements/dev/dev.txt
setup:
@echo 'Setting up the environment...'
make install_requirements
run-dev:
@echo 'Running local development'
docker-compose up -d --remove-orphans
npm run dev &
python manage.py runserver
run-tests:
@echo 'Checking for migrations'
python manage.py makemigrations --dry-run --check
pytest