-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 1.17 KB
/
Copy pathMakefile
File metadata and controls
46 lines (33 loc) · 1.17 KB
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
43
44
45
46
include .env
export
.PHONY: setup up down startapp makemigrations migrate createsuperuser collectstatic clear inittw tw getpayment
# this is most likely to be run as sudo
setup:
docker compose up --build -d
docker compose exec -it web ./manage.py makemigrations
docker compose exec -it web ./manage.py migrate
docker compose exec -it web ./manage.py createsuperuser
docker compose exec -it web ./manage.py collectstatic --no-input
up:
docker compose up --build -d
down:
docker compose down
startapp:
docker compose exec -it web ./manage.py startapp ${APP_NAME}
docker compose exec -it web chmod 777 -R ${APP_NAME}/
makemigrations:
docker compose exec -it web ./manage.py makemigrations
migrate:
docker compose exec -it web ./manage.py migrate
createsuperuser:
docker compose exec -it web ./manage.py createsuperuser
collectstatic:
docker compose exec -it web ./manage.py collectstatic --no-input
clear:
docker compose exec -it web cp /dev/null general.log
twi:
npm i && npm run build
tw:
npx tailwindcss -i ./static/src/input.css -o ./static/src/output.css --watch
getpayment:
curl -u ${ADMIN} -H 'Accept: application/json; indent=4' http://localhost/api/payment/