From 49bf6194a0ea7239caa62698ad3b6a9e17027279 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Thu, 15 Jul 2021 16:48:26 +0530 Subject: added Procfile and Makefile from heroku's default template --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c9def5f --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +GO_BUILD_ENV := CGO_ENABLED=0 GOOS=linux GOARCH=amd64 +DOCKER_BUILD=$(shell pwd)/.docker_build +DOCKER_CMD=$(DOCKER_BUILD)/go-getting-started + +$(DOCKER_CMD): clean + mkdir -p $(DOCKER_BUILD) + $(GO_BUILD_ENV) go build -v -o $(DOCKER_CMD) . + +clean: + rm -rf $(DOCKER_BUILD) + +heroku: $(DOCKER_CMD) + heroku container:push web -- cgit v1.2.3