From 43fd3472dd9d19aa1f602ce3fd3555f03312b99b Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 19 Dec 2016 11:04:20 -0800 Subject: adding http port to config and removing hardcoded url from addons api --- cmd/ponzu/main.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cmd') diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go index c03a4df..b2b5e75 100644 --- a/cmd/ponzu/main.go +++ b/cmd/ponzu/main.go @@ -296,15 +296,11 @@ func main() { // save the port the system is listening on so internal system can make // HTTP api calls while in dev or production w/o adding more cli flags - fmt.Println(port, "port from main") err := db.PutConfig("http_port", fmt.Sprintf("%d", port)) if err != nil { log.Fatalln("System failed to save config. Please try to run again.") } - cfg, _ := db.ConfigAll() - fmt.Println(string(cfg)) - log.Fatalln(http.ListenAndServe(fmt.Sprintf(":%d", port), nil)) case "": -- cgit v1.2.3