-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (29 loc) · 777 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
34
35
36
37
38
39
40
41
42
ifneq (,$(wildcard ./.env))
include .env
export
ENV_FILE_PARAM = --env-file .env
endif
build:
docker-compose up --build -d --remove-orphans
up:
docker-compose up -d
down:
docker-compose down
show-logs:
docker-compose logs
serv:
uvicorn app.main:app --reload
mmig: ## Run migrations. Use "make mmig app='app'" or "make mmig app='app' message='App migrated'"
piccolo migrations new ${app} --auto ${if $(message),--desc=${message}}
mmig_pic: # create migrations for original piccolo user
piccolo migrations forwards user && piccolo migrations forwards session_auth
mig:
piccolo migrations forwards all
init:
python initials/initial_data.py
tests:
pytest --disable-warnings -vv -x
reqm:
pip install -r requirements.txt
ureqm:
pip freeze > requirements.txt