From 0baf3aead3cd98760643ed76338b7ceb1b076bc4 Mon Sep 17 00:00:00 2001 From: Jonas Pfenniger Date: Tue, 2 Jul 2013 16:47:37 +0100 Subject: [PATCH] Allows to specify the path to the assets Just in case --- dockerui.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dockerui.go b/dockerui.go index 25d812668..5c3f78cdc 100644 --- a/dockerui.go +++ b/dockerui.go @@ -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() - path := fmt.Sprintf(":%s", *port) - - handler := createHandler("/app") + handler := createHandler(*assets) + path := fmt.Sprintf(":%s", *port) log.Fatal(http.ListenAndServe(path, handler)) }