Skip to content

Commit

Permalink
Merge pull request #5 from brandur/port
Browse files Browse the repository at this point in the history
Change default port to 12111
  • Loading branch information
brandur committed Jul 26, 2017
2 parents fe5f212 + 1addfcc commit 0c2387f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@ go get -u github.com/brandur/stripelocal
Run it:

``` sh
stripelocal -port 6065
stripelocal
```

Then from another terminal:

``` sh
curl -i http://localhost:6065/v1/charges
curl -i http://localhost:12111/v1/charges
```

By default, stripelocal runs on port 12111, but is configurable with the
`-port` option.

## Development

### Testing
Expand Down
2 changes: 1 addition & 1 deletion goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ brew:
<array>
<string>#{opt_bin}/stripelocal</string>
<string>-port</string>
<string>6065</string>
<string>12111</string>
</array>
<key>RunAtLoad</key>
<true/>
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c2387f

Please sign in to comment.