set static file by env
This commit is contained in:
2
main.go
2
main.go
@@ -52,7 +52,7 @@ func main() {
|
|||||||
server.Use(gin.Recovery())
|
server.Use(gin.Recovery())
|
||||||
server.Use(gin.Logger())
|
server.Use(gin.Logger())
|
||||||
|
|
||||||
server.Static("/static", "./static")
|
server.Static("/static", os.Getenv("STATIC"))
|
||||||
server.LoadHTMLGlob("views/*.html")
|
server.LoadHTMLGlob("views/*.html")
|
||||||
|
|
||||||
apiRoutes := server.Group("/api")
|
apiRoutes := server.Group("/api")
|
||||||
|
|||||||
Reference in New Issue
Block a user