https://github.com/d-led/go-gin-heroku
Simple walkthrough, deploying a Go / Gin based HTTP server to Heroku
https://github.com/d-led/go-gin-heroku
gin-gonic golang walkthrough
Last synced: 8 months ago
JSON representation
Simple walkthrough, deploying a Go / Gin based HTTP server to Heroku
- Host: GitHub
- URL: https://github.com/d-led/go-gin-heroku
- Owner: d-led
- License: unlicense
- Archived: true
- Created: 2021-06-11T07:59:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-11T08:37:52.000Z (about 5 years ago)
- Last Synced: 2024-11-16T15:38:30.504Z (over 1 year ago)
- Topics: gin-gonic, golang, walkthrough
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Log
- `go mod init github.com/d-led/go-gin-heroku`
- [main.go](main.go) with gin & `go get`
- `go run .` → http://localhost:8080/ → commit
- [main_test.go](main_test.go) sanity check, `go mod tidy` to fetch the assertion library, commit
- refactor to testability, test, commit
- https://signup.heroku.com/login
- https://dashboard.heroku.com/new-app
- enable Github deployments, "wait for CI to finish", trigger deployment
- done: https://go-gin-heroku.herokuapp.com/
- added `/version` → empty in production
- installed Heroku CLI
- `heroku buildpacks:add --index 1 https://github.com/40thieves/heroku-buildpack-commit-hash.git -a go-gin-heroku` (login via the browser)
- `heroku git:remote -a go-gin-heroku`
- deploy via `git push heroku master`
- https://go-gin-heroku.herokuapp.com/version done