13 lines
429 B
Makefile
13 lines
429 B
Makefile
PHONY: all
|
|
|
|
run_with_docker:
|
|
docker-compose -f compose/docker-compose.yml down
|
|
docker-compose -f compose/docker-compose.yml up --build -d
|
|
|
|
run_outside_docker:
|
|
killall main || echo "Process was not running."
|
|
docker-compose -f compose/docker-compose_outside_docker.yml down
|
|
docker-compose -f compose/docker-compose_outside_docker.yml up -d db
|
|
go run main.go --config=config/config_outside_docker.yaml &
|
|
|
|
all: run_with_docker
|