fix gobindata panic

This commit is contained in:
Stephen McQuay 2016-02-12 21:37:58 -08:00
parent 4a981bf69c
commit d76a9bff9f
1 changed files with 4 additions and 3 deletions

View File

@ -12,9 +12,10 @@ func main() {
var fs http.FileSystem var fs http.FileSystem
if os.Getenv("SM_DEV") == "" { if os.Getenv("SM_DEV") == "" {
fs = &assetfs.AssetFS{ fs = &assetfs.AssetFS{
Asset: web.Asset, Asset: web.Asset,
AssetDir: web.AssetDir, AssetDir: web.AssetDir,
Prefix: "static", AssetInfo: web.AssetInfo,
Prefix: "static",
} }
} else { } else {
fs = http.Dir(os.Getenv("SM_STATIC")) fs = http.Dir(os.Getenv("SM_STATIC"))