-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (31 loc) · 1.03 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
help:
@echo '---------------Flask-Simple-Boilerplate---------------'
@echo ' '
@echo 'Usage: '
@echo '------> run Run project '
@echo '------> initdb Init database '
@echo '------> test Run tests '
@echo '------> createuser Create superuser '
@echo '------> upgrade Run upgrade db '
@echo '------> migrate Run migrate '
@echo '------> setup Setup the project '
clean:
rm -rf app/__pycache__
rm -rf app/auth/__pycache__
rm -rf tests/__pycache__
rm -rf tests/db_test.db
run:
python3 manage.py runserver
initdb:
python3 manage.py db init
migrate:
python3 manage.py db migrate
upgrade:
python3 manage.py db upgrade
createuser:
python3 manage.py create_user
test:
python3 manage.py tests
requirements:
pip3 freeze > requirements.txt
setup: initdb migrate upgrade