use data dir
This commit is contained in:
parent
967baa6aaf
commit
268c894a8a
2
main.go
2
main.go
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
port := flag.String("p", "8100", "port to serve on")
|
port := flag.String("p", "8100", "port to serve on")
|
||||||
directory := flag.String("d", ".", "the directory of static file to host")
|
directory := flag.String("d", "data", "the directory of static file to host")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
http.Handle("/", http.FileServer(http.Dir(*directory)))
|
http.Handle("/", http.FileServer(http.Dir(*directory)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user