changed to staging cache.

This commit is contained in:
Travis
2013-01-30 12:07:14 -08:00
parent 7aec01ee1c
commit cef30ef263
3 changed files with 5 additions and 12 deletions

View File

@@ -20,19 +20,10 @@ This is just a simple prototype. To get to production would need:
- Ability to start new workers based on some auto scaling scheme.
- Authentication (same as always).
## Testing
- go build router.go
- sudo ./router.go
- ruby register_host.rb
- not a good way to really test beyond that locally
## Testing for reals
- start router.go on remote server (there's a test project on SD already: http://www.simpledeployer.com/projects/ea129e74-52fa-11e2-a91a-12313d008ea2/servers)
- go build ./src/router; sudo ./router
- iron_worker upload sinatra
- ruby register_host.rb
- iron_worker upload -e staging --project-id 51034bc3c2e603384b00a092 --host routertest.iron.io sinatra
- visit http://routertest.iron.io (or ruby client.rb)
- BOOM!

View File

@@ -1,7 +1,8 @@
{
"iron": {
"token": "MWx0VfngzsCu0W8NAYw7S2lNrgo",
"project_id": "4fd2729368a0197d1102056b",
"host": "staging-cache.iron.io",
"project_id": "4fd29900b51c1e5a230001d6",
"token": "FrGjgoBDbzwHG9IS-qhT1CmJBLo",
"super_token": "QpJzvVokpKwi9vjQfSU9ZTWUGhU"
},
"logging": {

View File

@@ -34,6 +34,7 @@ var config struct {
Token string `json:"token"`
ProjectId string `json:"project_id"`
SuperToken string `json:"super_token"`
Host string `json:"host"`
} `json:"iron"`
MongoAuth common.MongoConfig `json:"mongo_auth"`
Logging struct {