Browse Source

fix(settings): reverted prev settings fix for detecting public_gen folder in dev, caused issue for prod build

Torkel Ödegaard 10 years ago
parent
commit
d7bfb727b0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pkg/setting/setting.go

+ 4 - 0
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