Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authDB/src/commit/f318339c2388cd4152fda1ff058963786a555cea/build/Makefile You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 
 
 
 

25 lines
600 B

.DEFAULT_GOAL := build
GOOS=$(shell go env GOOS)
GOARCH=$(shell go env GOARCH)
GOBIN=$(shell go env GOPATH)/bin
APP=authDBService
APP_BINARY=${GOBIN}/${APP}-${GOOS}-${GOARCH}
APP_TAG=slaventius/test3k_auth_db:latest
clean:
@echo "cleaning ${APP_BINARY}"
@go clean
@rm -f ${APP_BINARY}
build: clean
@echo "building ${APP_BINARY}"
@go build -o ${APP_BINARY} -ldflags "-s -w" ../cmd/main.go
docker-build:
@echo "building docker-image ${APP_TAG}"
@sudo docker build --no-cache --tag ${APP_TAG} .
docker-push: docker-build
@echo "pushing docker-image ${APP_TAG}"
@sudo docker push ${APP_TAG}