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