enable static asset serving
- It changes behavior depending on if STATIC is set. - will need to run $(go generate ./...) before compiles will work
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
c := server.NewController(conf, *mprofile, *profile)
|
||||
c := server.NewController(conf, *mprofile, *profile, os.Getenv("STATIC"))
|
||||
|
||||
err = http.ListenAndServe(*addr, c)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user