diff --git a/README.md b/README.md index 5daf4d0..803c519 100644 --- a/README.md +++ b/README.md @@ -90,3 +90,44 @@ Example: redis+tcp://auth:mypass@redis.example.com:6379/5?prefix=cloudkeys:: ``` 3. Set your configuration variables in the Heroku apps dashboard (see env variables in usage section above) + +## Install on Google App Engine + +1. Remove the vendor folder and get the current libraries + + ``` + # rm -r vendor && go get -v -u ./... + ``` + +2. Fake os.Args in config.go + + ``` +$ 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 + ``` + +3. Deploy on App Engine + + ``` + # appcfg.py update . + ```