From 40f5327770ab37be50816913dc8f3add20e509dd Mon Sep 17 00:00:00 2001 From: Brandur Date: Wed, 26 Jul 2017 12:35:37 -0700 Subject: [PATCH 1/2] Change default port to 12111 Port 6065 should have been relatively uncontentious, but just to try and keep collisions to an absolute mininum, I picked an unassigned port from this list [1] maintained by the IANA. [1] https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?&page=120 --- README.md | 4 ++-- goreleaser.yml | 2 +- main.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c56b0b54..b0866334 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,13 @@ go get -u github.com/brandur/stripelocal Run it: ``` sh -stripelocal -port 6065 +stripelocal -port 12111 ``` Then from another terminal: ``` sh -curl -i http://localhost:6065/v1/charges +curl -i http://localhost:12111/v1/charges ``` ## Development diff --git a/goreleaser.yml b/goreleaser.yml index b85951b5..086923aa 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -30,7 +30,7 @@ brew: #{opt_bin}/stripelocal -port - 6065 + 12111 RunAtLoad diff --git a/main.go b/main.go index 763dbe05..09e64710 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ import ( "github.com/brandur/stripelocal/spec" ) -const defaultPort = 6065 +const defaultPort = 12111 // verbose tracks whether the program is operating in verbose mode var verbose bool From 1addfcce63d49941fe14b2b3a45e898c2c76fafa Mon Sep 17 00:00:00 2001 From: Brandur Date: Wed, 26 Jul 2017 12:39:20 -0700 Subject: [PATCH 2/2] Remove port from README The idea here is to just try to standardize on 12111 as much as possible. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b0866334..d569173e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ go get -u github.com/brandur/stripelocal Run it: ``` sh -stripelocal -port 12111 +stripelocal ``` Then from another terminal: @@ -33,6 +33,9 @@ Then from another terminal: curl -i http://localhost:12111/v1/charges ``` +By default, stripelocal runs on port 12111, but is configurable with the +`-port` option. + ## Development ### Testing