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
if os.Getenv("SM_DEV") == "" {
fs = &assetfs.AssetFS{
Asset: web.Asset,
AssetDir: web.AssetDir,
Prefix: "static",
Asset: web.Asset,
AssetDir: web.AssetDir,
AssetInfo: web.AssetInfo,
Prefix: "static",
}
} else {
fs = http.Dir(os.Getenv("SM_STATIC"))