-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 665 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (21 loc) · 665 Bytes
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
help:
@echo "init-db - init database "
@echo "run - run project"
@echo "env - create envioroment"
@echo "clean env - remove enviroment"
@echo "pip-install_req - install requirements"
env:
virtualenv -p python3.7 $@
${MAKE} pip-install-req
pip-install-req:
env/bin/pip install -r requirements.txt
clean_env:
rm -rdvf env
init-db:
python manage.py db init
python manage.py db migrate --message 'initial database migration'
python manage.py db upgrade
run:
# python manage.py runserver --host 0.0.0.0 --port ${PORT}
python manage.py runserver --host 0.0.0.0
# TODO: docker-compose command