Open platform to collect and prioritize feedback
views path on heroku
goenninga94c91ab07c4
diff --git a/router/router.go b/router/router.goindex 1c713c147..cb8c17568 100644--- a/router/router.go+++ b/router/router.go@@ -23,7 +23,11 @@ func GetMainEngine(ctx *context.WchyContext) *gin.Engine {}router.Use(MultiTenant(ctx))- router.LoadHTMLGlob(filepath.Join(os.Getenv("GOPATH"), "src/github.com/WeCanHearYou/wchy/views/*"))+ if env.IsTest() {+ router.LoadHTMLGlob(filepath.Join(os.Getenv("GOPATH"), "src/github.com/WeCanHearYou/wchy/views/*"))+ } else {+ router.LoadHTMLGlob("views/*")+ }router.GET("/", handler.Index(ctx))