2024-09-25 23:00:00 +02:00
|
|
|
.PHONY: all build up update down start-db status logs
|
2024-02-21 05:43:50 +01:00
|
|
|
|
2024-02-18 21:23:54 +01:00
|
|
|
all:
|
|
|
|
go test -v ./...
|
|
|
|
|
2024-02-19 20:05:50 +01:00
|
|
|
.env:
|
2024-02-18 21:23:54 +01:00
|
|
|
@cp example.env .env
|
|
|
|
@echo "Please edit .env to suit your environment before proceeding"
|
2024-02-18 21:27:17 +01:00
|
|
|
@exit 1
|
2024-02-18 21:23:54 +01:00
|
|
|
|
|
|
|
build: .env
|
|
|
|
@docker compose build
|
|
|
|
|
|
|
|
up: .env
|
|
|
|
@docker compose up -d --build
|
|
|
|
|
|
|
|
update: up
|
|
|
|
|
|
|
|
down:
|
|
|
|
@docker compose down
|
|
|
|
|
2024-04-13 19:50:06 +02:00
|
|
|
start-db: .env
|
2024-02-18 21:23:54 +01:00
|
|
|
@docker compose up -d postgres
|
|
|
|
|
|
|
|
status:
|
|
|
|
@docker compose stats
|
|
|
|
|
|
|
|
logs:
|
2024-04-13 20:42:36 +02:00
|
|
|
@docker compose logs -f -n 50
|