summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-15 17:23:58 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-15 17:23:58 -0400
commitea309acdb23f2058478f7e7753e359a6c6256c81 (patch)
tree8aa42a30567e0b20ca2033c0524c0b013dd1b41f /cmd
parent0f037b430a99a10cc9cff6f04dd1cf197ecc04ba (diff)
downloadgitea-ea309acdb23f2058478f7e7753e359a6c6256c81.tar.gz
gitea-ea309acdb23f2058478f7e7753e359a6c6256c81.zip
Fix #468
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index a9ff9dbcc2..f56ae82685 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -64,7 +64,8 @@ func newMacaron() *macaron.Macaron {
m := macaron.New()
m.Use(macaron.Logger())
m.Use(macaron.Recovery())
- m.Use(macaron.Static("public",
+ m.Use(macaron.Static(
+ path.Join(setting.StaticRootPath, "public"),
macaron.StaticOptions{
SkipLogging: !setting.DisableRouterLog,
},