functions: 0.0.24 release

This commit is contained in:
Travis Reeder
2016-07-15 15:27:54 -07:00
parent 0703db62d1
commit 403befabce
3 changed files with 10 additions and 25 deletions

View File

@@ -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`

View File

@@ -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"
}
}

View File

@@ -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{}