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:
sm
2015-08-26 23:16:12 -07:00
parent 6797c134d1
commit 7818a64756
3 changed files with 61 additions and 11 deletions
+1 -1
View File
@@ -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 {