From 944d7cbf735336935974493975bdc6e6934bb7cb Mon Sep 17 00:00:00 2001 From: Martin Thielecke Date: Fri, 29 Dec 2017 22:25:30 +0000 Subject: [PATCH] more documentation --- README.md | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index cfe2460..c009480 100644 --- a/README.md +++ b/README.md @@ -99,31 +99,9 @@ Example: redis+tcp://auth:mypass@redis.example.com:6379/5?prefix=cloudkeys:: $ rm -r vendor && go get -v -u ./... ``` -2. Fake os.Args in config.go - +2. Create app.yaml and set the correct settings ``` - $ git diff config.go - diff --git a/config.go b/config.go - index f2bbf2e..542c276 100644 - --- a/config.go - +++ b/config.go - @@ -2,6 +2,7 @@ package main - - import ( - "net/url" - + "os" - - "github.com/Luzifer/rconfig" - ) - @@ -24,6 +25,8 @@ func (c config) ParsedStorage() (*url.URL, error) { - } - - func loadConfig() *config { - + os.Args = []string{os.Args[0]} - + - cfg := &config{} - rconfig.Parse(cfg) - return cfg + $ copy app.yaml.example app.yaml ``` 3. Deploy on App Engine