Skip to content

Commit

Permalink
Tip for those using gin and want to override flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Bengtsson committed Jan 26, 2015
1 parent b08e9e5 commit 5ffa5fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -29,4 +29,10 @@ gin -h
`gin` assumes that your web app binds itself to the `PORT` environment
variable so it can properly proxy requests to your app. Web frameworks
like [Martini](http://github.com/codegangsta/martini) do this out of
the box.
the box.

## Using flags?
When you normally start your server with [flags](https://godoc.org/flag)
if you want to override any of them when running `gin` we suggest you
instead use [github.com/namsral/flag](https://github.com/namsral/flag)
as explained in [this post](http://stackoverflow.com/questions/24873883/organizing-environment-variables-golang/28160665#28160665)

0 comments on commit 5ffa5fa

Please sign in to comment.