Skip to content

Commit faf0d1f

Browse files
committed
Change Makefile
1 parent ce673a3 commit faf0d1f

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

Makefile

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
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

0 commit comments

Comments
 (0)