diff --git a/main.go b/main.go index 03b1a2d..836145c 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ var jt jobTracker var rootPath, staticPath string func index(c web.C, w http.ResponseWriter, r *http.Request) { - http.ServeFile(w, r, filepath.Join(staticPath, "index.html")) + http.ServeFile(w, r, filepath.Join(rootPath, "index.html")) } func getJobs(c web.C, w http.ResponseWriter, r *http.Request) { @@ -103,8 +103,8 @@ func init() { log.Fatal(err) } - rootPath = filepath.join(binPath, "..") - staticPath = filepath.join(rootPath, "static") + rootPath = filepath.Join(binPath, "..") + staticPath = filepath.Join(rootPath, "static") } func main() {