this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

⏪️ Revert modifications to startFileServer

+2 -11
+2 -11
main.go
··· 22 22 23 23 func startFileServer(port int, root string) { 24 24 staticServer := http.NewServeMux() 25 - resolvedRoot, err := filepath.Abs(filepath.Join(".", root)) 26 - if err != nil { 27 - panic(err) 28 - } 29 - 30 - fs := http.FileServer(http.Dir(resolvedRoot)) 25 + fs := http.FileServer(http.Dir(filepath.Join(".", root))) 31 26 staticServer.Handle("/", fs) 32 - fmt.Printf("[ ] Serving static files from %s on http://localhost:%d\n", resolvedRoot, port) 33 - err = http.ListenAndServe(fmt.Sprintf(":%d", port), staticServer) 34 - if err != nil { 35 - panic(err) 36 - } 27 + http.ListenAndServe(fmt.Sprintf(":%d", port), staticServer) 37 28 } 38 29 39 30 func startSHSServer(wg *sync.WaitGroup, port int, regularSiteURL string, sites []shared.Site, db ortfodb.Database, collections shared.Collections, technologies []shared.Technology, tags []shared.Tag) {