2020-07-10 18:07:41 +02:00
|
|
|
build: build-docker build-server
|
|
|
|
|
|
|
|
build-docker:
|
2020-06-15 14:58:59 +02:00
|
|
|
docker-compose build
|
|
|
|
|
2020-07-10 18:07:41 +02:00
|
|
|
build-server:
|
|
|
|
CGO_ENABLED=0 go build -mod=vendor -v -o ./bin/server ./cmd/server
|
2020-06-15 18:10:06 +02:00
|
|
|
|
2020-07-10 18:07:41 +02:00
|
|
|
deps:
|
|
|
|
cd client && npm install
|
|
|
|
env GO111MODULE=off go get github.com/cortesi/modd/cmd/modd
|
2020-06-15 14:58:59 +02:00
|
|
|
|
2020-07-10 18:07:41 +02:00
|
|
|
up: build-docker
|
|
|
|
docker-compose up
|
2020-06-15 14:58:59 +02:00
|
|
|
|
2020-07-10 18:07:41 +02:00
|
|
|
watch:
|
|
|
|
$(GOPATH)/bin/modd
|
2020-06-15 14:58:59 +02:00
|
|
|
|
|
|
|
down:
|
|
|
|
docker-compose down -v --remove-orphans
|
|
|
|
|
|
|
|
db-shell:
|
2020-06-21 11:30:34 +02:00
|
|
|
docker-compose exec postgres psql -Udaddy
|
2020-06-18 09:34:22 +02:00
|
|
|
|
2020-07-10 18:07:41 +02:00
|
|
|
test:
|
|
|
|
go test -v ./...
|
|
|
|
|
2020-06-18 09:34:22 +02:00
|
|
|
hydra-shell:
|
|
|
|
docker-compose exec hydra /bin/sh
|