diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 0515bcee30..3ee38f76c4 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -58,8 +58,8 @@ func newMartini() *martini.ClassicMartini { m := martini.New() m.Use(middleware.Logger()) m.Use(martini.Recovery()) - m.Use(martini.Static(path.Join(setting.StaticRootPath, "public"), - martini.StaticOptions{SkipLogging: !setting.DisableRouterLog})) + m.Use(middleware.Static("public", + middleware.StaticOptions{SkipLogging: !setting.DisableRouterLog})) m.MapTo(r, (*martini.Routes)(nil)) m.Action(r.Handle) return &martini.ClassicMartini{m, r} |