Skip to content

Commit

Permalink
[snap] fix path for axolotl web #2
Browse files Browse the repository at this point in the history
  • Loading branch information
nanu-c committed Dec 21, 2019
1 parent 2c4e1f2 commit 4019dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/webserver/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func wsReader(conn *websocket.Conn) {
func webserver() {
path := "."
if len(os.Getenv("SNAP")) > 0 {
path = os.Getenv("SNAP")
path = os.Getenv("SNAP") + "/bin"
}
log.Debugln("[axoltol] axoltol-web path", path+"/axolotl-web/dist")
http.Handle("/", http.FileServer(http.Dir(path+"/axolotl-web/dist")))
Expand Down

0 comments on commit 4019dad

Please sign in to comment.