From 31b374827c0d1bb411f6eceef1a795f4094aacd6 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Wed, 14 Oct 2020 09:35:03 +0200 Subject: [PATCH] fix(ui): fxies an issue where the ui would display 404 --- pkg/devspace/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/devspace/server/server.go b/pkg/devspace/server/server.go index 44f4cb9b14..a8910f9ce8 100644 --- a/pkg/devspace/server/server.go +++ b/pkg/devspace/server/server.go @@ -177,7 +177,7 @@ func newHandler(configLoader loader.ConfigLoader, config *latest.Config, generat } handler.mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - http.ServeFile(w, r, "index.html") + http.ServeFile(w, r, filepath.Join(path, "index.html")) }) handler.mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir(filepath.Join(path, "static"))))) handler.mux.HandleFunc("/api/version", handler.version)