From d7bfb727b0e55be4a4143530bb49e986c3ffed12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 14 Sep 2015 13:42:23 +0200 Subject: [PATCH] fix(settings): reverted prev settings fix for detecting public_gen folder in dev, caused issue for prod build --- pkg/setting/setting.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index 23a6273a24b..b801d578368 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -363,6 +363,10 @@ func validateStaticRootPath() error { return nil } + if _, err := os.Stat(StaticRootPath + "css"); err == nil { + return nil + } + if _, err := os.Stat(StaticRootPath + "_gen/css"); err == nil { StaticRootPath = StaticRootPath + "_gen" return nil