|
6 | 6 |
|
7 | 7 | .PHONY: build
|
8 | 8 | build: ## Build the development server
|
9 |
| - @docker-compose build --pull |
| 9 | + @docker compose build --pull |
10 | 10 |
|
11 | 11 | .PHONY: start
|
12 | 12 | start: ## Start the development server
|
13 |
| - @docker-compose up -d --build |
| 13 | + @docker compose up -d --build |
14 | 14 |
|
15 | 15 | .PHONY: test
|
16 | 16 | test: ## Test the backend
|
17 |
| - @docker-compose run emeis pytest --no-cov-on-fail --cov --create-db -vv |
| 17 | + @docker compose run emeis pytest --no-cov-on-fail --cov --create-db -vv |
18 | 18 |
|
19 | 19 | .PHONY: lint
|
20 | 20 | lint: ## Lint the backend
|
21 |
| - @docker-compose run emeis sh -c "black --check . && flake8" |
| 21 | + @docker compose run emeis sh -c "black --check . && flake8" |
22 | 22 |
|
23 | 23 | .PHONY: bash
|
24 | 24 | bash: ## Shell into the backend
|
25 |
| - @docker-compose run emeis bash |
| 25 | + @docker compose run emeis bash |
26 | 26 |
|
27 | 27 | .PHONY: shell_plus
|
28 | 28 | shell_plus: ## Run shell_plus
|
29 |
| - @docker-compose run emeis python ./manage.py shell_plus |
| 29 | + @docker compose run emeis python ./manage.py shell_plus |
30 | 30 |
|
31 | 31 | .PHONY: makemigrations
|
32 | 32 | makemigrations: ## Make django migrations
|
33 |
| - @docker-compose run emeis python ./manage.py makemigrations |
| 33 | + @docker compose run emeis python ./manage.py makemigrations |
34 | 34 |
|
35 | 35 | .PHONY: migrate
|
36 | 36 | migrate: ## Migrate django
|
37 |
| - @docker-compose run emeis python ./manage.py migrate |
| 37 | + @docker compose run emeis python ./manage.py migrate |
38 | 38 |
|
39 | 39 | .PHONY: dbshell
|
40 | 40 | dbshell: ## Start a psql shell
|
41 |
| - @docker-compose exec db psql -Uemeis |
| 41 | + @docker compose exec db psql -Uemeis |
42 | 42 |
|
43 | 43 |
|
44 | 44 | .PHONY: help start test shell
|
|
0 commit comments