Browse Source

Change static URL

Denis V. Dedkov 9 years ago
parent
commit
b99c54e9fd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      noolite-cli.go

+ 3 - 1
noolite-cli.go

@@ -113,6 +113,8 @@ func main() {
 
 		fs := http.FileServer(http.Dir("/var/www/static"))
 
-		panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), fs))
+		http.Handle("static", fs)
+
+		panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), nil))
 	}
 }