An open API service indexing awesome lists of open source software.

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

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