github.com/bketelsen/buffalo@v0.9.5/generators/newapp/templates/main.go.tmpl (about)

     1  package main
     2  
     3  import (
     4  	"log"
     5  
     6    "{{ .actionsPath }}"
     7    "github.com/gobuffalo/envy"
     8  )
     9  
    10  func main() {
    11  	port := envy.Get("PORT", "3000")
    12  	app := actions.App()
    13  	log.Fatal(app.Start(port))
    14  }