mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
Allows to specify the path to the assets
Just in case
This commit is contained in:
parent
b4e8d0b46e
commit
0baf3aead3
1 changed files with 3 additions and 3 deletions
|
@ -13,6 +13,7 @@ var (
|
|||
endpoint = flag.String("e", "", "Docker d endpoint.")
|
||||
verbose = flag.Bool("v", false, "Verbose logging.")
|
||||
port = flag.String("p", "9000", "Port to serve dockerui.")
|
||||
assets = flag.String("-a", "/app", "Path to the assets.")
|
||||
)
|
||||
|
||||
type multiHandler struct {
|
||||
|
@ -63,9 +64,8 @@ func createHandler(dir string) http.Handler {
|
|||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
handler := createHandler(*assets)
|
||||
|
||||
path := fmt.Sprintf(":%s", *port)
|
||||
|
||||
handler := createHandler("/app")
|
||||
|
||||
log.Fatal(http.ListenAndServe(path, handler))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue