diff --git a/cmd/smweb/main.go b/cmd/smweb/main.go index 7b87fbf..946ab14 100644 --- a/cmd/smweb/main.go +++ b/cmd/smweb/main.go @@ -1,12 +1,15 @@ package main -import "net/http" +import ( + "net/http" + "os" +) func main() { http.Handle( "/", http.FileServer( - http.Dir("."), + http.Dir(os.Getenv("SM_STATIC")), ), ) if err := http.ListenAndServe(":8000", nil); err != nil {