generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
35 lines (23 loc) · 703 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
.PHONY: build start stop build-linter lint migrations migrate db-shell test-server test-frontend
# Run commands with `make <target>`
build:
docker compose build
start:
docker compose up
stop:
docker compose down
build-linter:
docker compose build linter
lint:
docker compose up linter
# Below commands require the docker containers to be running
migrations:
docker compose exec django python manage.py makemigrations
migrate:
docker compose exec django python manage.py migrate
db-shell:
docker compose exec django python manage.py shell
test-frontend:
docker compose run -T -w /code/frontend webpack npm run test
test-server:
docker exec django python manage.py test server.tests