Skip to content

Commit

Permalink
chore(makefile): s/docker-compose/docker compose/g
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Aug 19, 2024
1 parent 392edca commit 19f7810
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,39 @@ help:

.PHONY: build
build: ## Build the development server
@docker-compose build --pull
@docker compose build --pull

.PHONY: start
start: ## Start the development server
@docker-compose up -d --build
@docker compose up -d --build

.PHONY: test
test: ## Test the backend
@docker-compose run emeis pytest --no-cov-on-fail --cov --create-db -vv
@docker compose run emeis pytest --no-cov-on-fail --cov --create-db -vv

.PHONY: lint
lint: ## Lint the backend
@docker-compose run emeis sh -c "black --check . && flake8"
@docker compose run emeis sh -c "black --check . && flake8"

.PHONY: bash
bash: ## Shell into the backend
@docker-compose run emeis bash
@docker compose run emeis bash

.PHONY: shell_plus
shell_plus: ## Run shell_plus
@docker-compose run emeis python ./manage.py shell_plus
@docker compose run emeis python ./manage.py shell_plus

.PHONY: makemigrations
makemigrations: ## Make django migrations
@docker-compose run emeis python ./manage.py makemigrations
@docker compose run emeis python ./manage.py makemigrations

.PHONY: migrate
migrate: ## Migrate django
@docker-compose run emeis python ./manage.py migrate
@docker compose run emeis python ./manage.py migrate

.PHONY: dbshell
dbshell: ## Start a psql shell
@docker-compose exec db psql -Uemeis
@docker compose exec db psql -Uemeis


.PHONY: help start test shell
Expand Down

0 comments on commit 19f7810

Please sign in to comment.