diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-19 11:04:20 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-19 11:04:20 -0800 |
commit | 43fd3472dd9d19aa1f602ce3fd3555f03312b99b (patch) | |
tree | fcd1a2e891a530d8812538c8bebe39f6fc491980 /cmd/ponzu/main.go | |
parent | bab8caaf4d599da47f296bc9e2940b11cb37aa4f (diff) |
adding http port to config and removing hardcoded url from addons api
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r-- | cmd/ponzu/main.go | 4 |
1 files changed, 0 insertions, 4 deletions
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 "": |