forked from mtusi2026/mtusi2026lab3
feat: полная реализация
This commit is contained in:
@@ -1,20 +1,35 @@
|
||||
PYTHON ?= python3
|
||||
COMPOSE ?= docker compose
|
||||
|
||||
.PHONY: up down migrate restart test logs stop-one restart-one clean check
|
||||
|
||||
up:
|
||||
docker compose up -d --build
|
||||
$(COMPOSE) up -d --build
|
||||
|
||||
down:
|
||||
docker compose down
|
||||
$(COMPOSE) down
|
||||
|
||||
migrate:
|
||||
docker compose exec api1 ./migrate up
|
||||
$(COMPOSE) exec api1 ./migrate up
|
||||
|
||||
restart:
|
||||
$(COMPOSE) restart
|
||||
|
||||
test:
|
||||
go test ./tests
|
||||
$(PYTHON) tests/client.py
|
||||
$(PYTHON) tests/load.py
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
|
||||
logs:
|
||||
docker compose logs -f
|
||||
$(COMPOSE) logs -f
|
||||
|
||||
stop-one:
|
||||
./scripts/stop-one.sh api1
|
||||
./scripts/stop-one.sh api1
|
||||
|
||||
restart-one:
|
||||
./scripts/restart-one.sh api1
|
||||
./scripts/restart-one.sh api1
|
||||
|
||||
clean: down
|
||||
$(COMPOSE) down -v
|
||||
|
||||
Reference in New Issue
Block a user