File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change 1- GO_BUILD_ENV := CGO_ENABLED=0 GOOS=linux GOARCH=amd64
2- DOCKER_BUILD =$(shell pwd) /.docker_build
3- DOCKER_CMD =$(DOCKER_BUILD ) /go-webserver
1+ # GO_BUILD_ENV := CGO_ENABLED=0 GOOS=linux GOARCH=amd64
2+ # DOCKER_BUILD=$(shell pwd)/.docker_build
3+ # DOCKER_CMD=$(DOCKER_BUILD)/go-webserver
44
5- $(DOCKER_CMD ) : clean
6- mkdir -p $(DOCKER_BUILD )
7- $(GO_BUILD_ENV ) go build -v -o $(DOCKER_CMD ) .
5+ # $(DOCKER_CMD): clean
6+ # mkdir -p $(DOCKER_BUILD)
7+ # $(GO_BUILD_ENV) go build -v -o $(DOCKER_CMD) .
88
9- clean :
10- rm -rf $(DOCKER_BUILD )
9+ # clean:
10+ # rm -rf $(DOCKER_BUILD)
11+
12+ # heroku: $(DOCKER_CMD)
13+ # heroku container:push web
14+ run : bin/go-webserver
15+ @PATH=" $( PWD) /bin:$( PATH) " heroku local
1116
12- heroku : $(DOCKER_CMD )
13- heroku container:push web
17+ bin/go-webserver : main.go
18+ go build -o bin/go-webserver main.go
19+
20+ clean :
21+ rm -rf bin
You can’t perform that action at this time.
0 commit comments