Skip to content

Commit

Permalink
Add HTTP port bindings options for backwards compaitibility (same cmd…
Browse files Browse the repository at this point in the history
… flag as goji)
  • Loading branch information
j1n6 committed Apr 18, 2015
1 parent 2c2370b commit 1049afc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/bamboo/bamboo.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ import (
*/
var configFilePath string
var logPath string
var serverBindPort string

func init() {
flag.StringVar(&configFilePath, "config", "config/development.json", "Full path of the configuration JSON file")
flag.StringVar(&logPath, "log", "", "Log path to a file. Default logs to stdout")
flag.StringVar(&serverBindPort, "bind", ":8000", "Bind HTTP server to a specific port")
}

func main() {
Expand Down Expand Up @@ -104,7 +106,7 @@ func initServer(conf *configuration.Configuration, conn *zk.Conn, eventBus *even
router.Use(martini.Static(path.Join(executableFolder(), "webapp")))

registerMarathonEvent(conf)
router.RunOnAddr(":8000")
router.RunOnAddr(serverBindPort)
}

// Get current executable folder path
Expand Down

0 comments on commit 1049afc

Please sign in to comment.