func startWeb() { if p := os.Getenv("PORT"); p != "" { port = p } n := negroni.New() n.Use(negroni.HandlerFunc(recovery)) n.Use(negroni.HandlerFunc(development)) n.Use(negronilogrus.NewMiddleware()) n.UseHandler(controllers.NewRouter()) n.Run(fmt.Sprintf(":%s", port)) }
func startWeb() { if p := os.Getenv("PORT"); p != "" { port = p } n := negroni.New() n.Use(negroni.HandlerFunc(recovery)) n.Use(negroni.HandlerFunc(development)) n.Use(nlogger.New("ns=api.web", nil)) n.UseHandler(controllers.NewRouter()) n.Run(fmt.Sprintf(":%s", port)) }