Skip to content

Commit

Permalink
fix static asset path
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora committed Dec 22, 2018
1 parent c1c21da commit 07fc5ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ func Run(version string, c Config) error {
if err != nil {
return fmt.Errorf("failed to load static assets: %s", err)
}
a.fs = http.StripPrefix("/static/", http.FileServer(statikFS))
// a.fs = http.FileServer(&assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, AssetInfo: AssetInfo})
a.fs = http.FileServer(statikFS)
}
//grab listener
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", c.Host, c.Port))
Expand Down

0 comments on commit 07fc5ca

Please sign in to comment.