fix gobindata panic
This commit is contained in:
parent
4a981bf69c
commit
d76a9bff9f
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user