From 403befabce36c011a70831d8bf7e44655844dc18 Mon Sep 17 00:00:00 2001 From: Travis Reeder Date: Fri, 15 Jul 2016 15:27:54 -0700 Subject: [PATCH] functions: 0.0.24 release --- CONTRIBUTING.md | 9 ++++++++- config_development.json | 22 ---------------------- router.go | 4 ++-- 3 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 config_development.json diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3c89959e1..1d1dbc755 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,7 @@ glide install Test it, the iron token and project id are for cache. ```sh -docker run -e "IRON_TOKEN=GP8cqlKSrcpmqeR8x9WKD4qSAss" -e "IRON_PROJECT_ID=4fd2729368a0197d1102056b" -e "CLOUDFLARE_EMAIL=treeder@gmail.com" -e "CLOUDFLARE_API_KEY=X" --rm -it --privileged -p 8080:8080 iron/functions +docker run -e "IRON_TOKEN=GP8cqlKSrcpmqeR8x9WKD4qSAss" -e "IRON_PROJECT_ID=4fd2729368a0197d1102056b" -e "CLOUDFLARE_EMAIL=treeder@gmail.com" -e "CLOUDFLARE_API_KEY=x" --rm -it --privileged -p 8080:8080 iron/functions ``` Push it: @@ -31,6 +31,12 @@ docker run -e --name functions -it --privileged -d -p 80:80 "IRON_TOKEN=GP8cqlKS ``` +## Releasing + +```sh +./release.sh +``` + ## FOR INFLUX AND ANALYTICS @@ -57,3 +63,4 @@ docker run -p 10000:10000 --link influxdb chronograf Open UI: http://localhost:10000 Add server with host `influxdb` + diff --git a/config_development.json b/config_development.json deleted file mode 100644 index e381666db..000000000 --- a/config_development.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "cache": { - "description": "using production cache even for dev/staging", - "host": "cache-aws-us-east-1.iron.io", - "project_id":"4e25e1d25c0dd27801000275", - "token":"PXNX3uPb4Wi6nk3hcK-X6agSD40" - }, - "iron": { - "project_id": "5577b5403864900009000006", - "token": "15iDumDYhHt_3hrwaGhPHLVyfA4", - "super_token": "nhsMxPhW7R8U6GTxKQVorKWJVzw" - }, - "logging": { - "to": "papertrail", - "level": "debug", - "prefix": "router_staging" - }, - "cloudflare": { - "email": "treeder@gmail.com", - "auth_key": "f94272c543f19f8fad0f4f5b3e2ddb74ad929" - } -} diff --git a/router.go b/router.go index 35356cbee..ee9750f33 100644 --- a/router.go +++ b/router.go @@ -44,7 +44,7 @@ var config struct { } } -const Version = "0.0.23" +const Version = "0.0.24" //var routingTable = map[string]*Route{} var icache = cache.New("routing-table") @@ -113,7 +113,7 @@ func main() { http.Handle("/", r) port := 8080 log.Infoln("Router started, listening and serving on port", port) - log.Fatal(http.ListenAndServe(fmt.Sprintf("0.0.4.0:%v", port), nil)) + log.Fatal(http.ListenAndServe(fmt.Sprintf("0.0.1.0:%v", port), nil)) } type NewApp struct{}