|
|
@ -163,6 +163,9 @@ func runWeb(*cli.Context) {
|
|
|
|
m.Get("/template/**", dev.TemplatePreview)
|
|
|
|
m.Get("/template/**", dev.TemplatePreview)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// not found handler
|
|
|
|
|
|
|
|
m.NotFound(routers.NotFound)
|
|
|
|
|
|
|
|
|
|
|
|
listenAddr := fmt.Sprintf("%s:%s",
|
|
|
|
listenAddr := fmt.Sprintf("%s:%s",
|
|
|
|
base.Cfg.MustValue("server", "HTTP_ADDR"),
|
|
|
|
base.Cfg.MustValue("server", "HTTP_ADDR"),
|
|
|
|
base.Cfg.MustValue("server", "HTTP_PORT", "3000"))
|
|
|
|
base.Cfg.MustValue("server", "HTTP_PORT", "3000"))
|
|
|
|