29 lines
487 B
Makefile
29 lines
487 B
Makefile
build: build-docker build-server
|
|
|
|
build-docker:
|
|
docker-compose build
|
|
|
|
build-server:
|
|
CGO_ENABLED=0 go build -mod=vendor -v -o ./bin/server ./cmd/server
|
|
|
|
deps:
|
|
cd client && npm install
|
|
env GO111MODULE=off go get github.com/cortesi/modd/cmd/modd
|
|
|
|
up: build-docker
|
|
docker-compose up
|
|
|
|
watch:
|
|
$(GOPATH)/bin/modd
|
|
|
|
down:
|
|
docker-compose down -v --remove-orphans
|
|
|
|
db-shell:
|
|
docker-compose exec postgres psql -Udaddy
|
|
|
|
test:
|
|
go test -v ./...
|
|
|
|
hydra-shell:
|
|
docker-compose exec hydra /bin/sh
|