oef/Makefile
2020-01-31 10:50:28 +01:00

21 lines
779 B
Makefile

PHONY: all
prod:
docker-compose -f docker/oef_prod/docker-compose.yml down
docker-compose -f docker/oef_prod/docker-compose.yml up --build -d
dev:
killall main || echo "Process was not running."
docker-compose -f docker/oef_dev/docker-compose.yaml down
docker-compose -f docker/oef_dev/docker-compose.yaml up -d db
docker-compose -f docker/oef_dev/docker-compose.yaml up -d smtp
go run -race main.go --config=docker/oef_dev/config/config.yaml &
test:
killall main || echo "Process was not running."
docker-compose -f docker/oef_test/docker-compose.yaml down
docker-compose -f docker/oef_test/docker-compose.yaml up -d db
docker-compose -f docker/oef_test/docker-compose.yaml up -d smtp
go run -race main.go --config=docker/oef_test/config/config.yaml &
all: prod