mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
b5be858071
* Fix update checks for orbit at startup * Add tests * Add scripts for testing local TUF server * Remove -x used for debugging
16 lines
218 B
Go
16 lines
218 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
fs := http.FileServer(http.FS(os.DirFS(os.Args[2])))
|
|
http.Handle("/", fs)
|
|
err := http.ListenAndServe(":"+os.Args[1], nil)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|