diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-15 16:48:26 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-07-15 16:48:26 +0530 |
commit | 49bf6194a0ea7239caa62698ad3b6a9e17027279 (patch) | |
tree | 583639ee2bd6da4856fc18ccdc9be9d949a3ed6f | |
parent | 90013b52c06611bbbffee6a314ede870bef4a5ab (diff) |
added Procfile and Makefile from heroku's default template
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | Procfile | 1 |
2 files changed, 14 insertions, 0 deletions
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 diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..0a46a9a --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: bin/tic-tac-toe |