Skip to content

Commit

Permalink
Merge pull request #10 from LewisWatson/bugfix/docker-config-fix
Browse files Browse the repository at this point in the history
Bugfix/docker config fix
  • Loading branch information
LewisWatson authored Mar 21, 2017
2 parents df72b58 + 59abc64 commit c601d08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [0.3.1] - 2017-03-21

### Fixed

- Re-introduce environmental variable configuration support (for docker)

## [0.3.0] - 2017-03-21

### Added
Expand Down Expand Up @@ -48,7 +54,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Add ability to create users, car shares and trips via json:api REST interface and store in simple in memory data store
- Add README and CHANGELOG

[Unreleased]:https://github.com/LewisWatson/carshare-back/compare/v0.3.0...HEAD
[Unreleased]:https://github.com/LewisWatson/carshare-back/compare/v0.3.1...HEAD
[0.3.1]: https://github.com/LewisWatson/carshare-back/releases/tag/v0.3.1
[0.3.0]: https://github.com/LewisWatson/carshare-back/releases/tag/v0.3.0
[0.2.0]: https://github.com/LewisWatson/carshare-back/releases/tag/v0.2.0
[0.1.0]: https://github.com/LewisWatson/carshare-back/releases/tag/v0.1.0
8 changes: 4 additions & 4 deletions carshare-back.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import (
)

var (
port = kingpin.Flag("port", "Set port to bind to").Default("31415").Int()
mgoURL = kingpin.Flag("mgoURL", "URL to MongoDB server or seed server(s) for clusters").Default("localhost").URL()
acao = kingpin.Flag("cors", "Enable HTTP Access Control (CORS) for the specified URI").PlaceHolder("URI").String()
port = kingpin.Flag("port", "Set port to bind to").Default("31415").Envar("CARSHARE_PORT").Int()
mgoURL = kingpin.Flag("mgoURL", "URL to MongoDB server or seed server(s) for clusters").Default("localhost").Envar("CARSHARE_MGO_URL").URL()
acao = kingpin.Flag("cors", "Enable HTTP Access Control (CORS) for the specified URI").PlaceHolder("URI").Envar("CARSHARE_CORS_URI").String()
)

func main() {

kingpin.UsageTemplate(kingpin.CompactUsageTemplate).Version("0.3.0").Author("Lewis Watson")
kingpin.UsageTemplate(kingpin.CompactUsageTemplate).Version("0.3.1").Author("Lewis Watson")
kingpin.CommandLine.Help = "API for tracking car shares"
kingpin.Parse()

Expand Down

0 comments on commit c601d08

Please sign in to comment.