update makefile
This commit is contained in:
14
Makefile
14
Makefile
@@ -32,21 +32,11 @@ run:
|
|||||||
@go run cmd/api/main.go
|
@go run cmd/api/main.go
|
||||||
# Create DB container
|
# Create DB container
|
||||||
docker-run:
|
docker-run:
|
||||||
@if docker compose up --build 2>/dev/null; then \
|
@docker compose up --build
|
||||||
: ; \
|
|
||||||
else \
|
|
||||||
echo "Falling back to Docker Compose V1"; \
|
|
||||||
docker-compose up --build; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Shutdown DB container
|
# Shutdown DB container
|
||||||
docker-down:
|
docker-down:
|
||||||
@if docker compose down 2>/dev/null; then \
|
@docker compose down -v
|
||||||
: ; \
|
|
||||||
else \
|
|
||||||
echo "Falling back to Docker Compose V1"; \
|
|
||||||
docker-compose down; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Test the application
|
# Test the application
|
||||||
test:
|
test:
|
||||||
|
|||||||
Reference in New Issue
Block a user