From 5ffa5fa0b702660e898b60cfdb478605c5e4bad6 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 26 Jan 2015 15:29:30 -0800 Subject: [PATCH] Tip for those using gin and want to override flags --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 15088aa..c3b8cda 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +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)