Closed leonklingele closed 7 years ago
Yikes, that's not right. Could I bug you for the following:
~/Library/Logs/goggles.log
This patch fixes the issue for me:
diff --git a/server/server.go b/server/server.go
index d682d8a..bd6cdf9 100644
--- a/server/server.go
+++ b/server/server.go
@@ -18,7 +18,7 @@ import (
// /static/...
func New(p api.Provider, root string) *http.ServeMux {
mux := http.NewServeMux()
- dir := http.Dir(filepath.Join(root, "static"))
+ dir := http.Dir(filepath.Join(root, "static/_static"))
fs := http.FileServer(dir)
mux.Handle("/", http.StripPrefix("/static/", fs))
api.Bind(p, mux)
$ go version
go version go1.8 darwin/amd64
$ sw_vers -productVersion
10.11.6
Great thanks, I think I see what the issue is - make is copying the static folders incorrectly for you, I'll see if I can figure out why. Seems like your .App contains:
static/_static
Instead of just:
static/
@leonklingele this should be resolved now but unfortunately I was never able to reproduce to be certain. If you could verify it would be much appreciated!
Works fine, thank you! :)
What I did:
This opens an "empty" web view which looks like a directory listing: