What did you do?
I am attempting to successfully run this app from Heroku. Very new to golang so everything is still foreign. After pushing my local bluepint to heroku, heroku's gin server seems to conflict with blueprint's server.go and not sure how to set things up to use either one or the other. Do you know of any sample projects wherein blue-jay/blueprint is hosted from heroku where i could see how things are set up for local and remote (heroku)?
This is the default code that starts of a Heroku golang project:
port := os.Getenv("PORT")
if port == "80" {
log.Fatal("$PORT must be set")
}
router := gin.New()
router.Use(gin.Logger())
router.LoadHTMLGlob("templates/*.tmpl.html")
router.Static("/static", "static")
router.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "index.tmpl.html", nil)
})
router.Run(":" + port)
ps. Heroku is using govender if that is anything helpful.
Please answer these questions when submitting your issue. Thanks!
Which commit are you using? Latest commit f200a5c on Jul 16, 2017
Which operating system, processor architecture, and Go version are you using (
go env
)? $ go version go version go1.10.1 darwin/amd64What did you do? I am attempting to successfully run this app from Heroku. Very new to golang so everything is still foreign. After pushing my local bluepint to heroku, heroku's gin server seems to conflict with blueprint's server.go and not sure how to set things up to use either one or the other. Do you know of any sample projects wherein blue-jay/blueprint is hosted from heroku where i could see how things are set up for local and remote (heroku)?
This is the default code that starts of a Heroku golang project:
ps. Heroku is using govender if that is anything helpful.
Thanks.