Updated elb ping url

This commit is contained in:
Travis
2013-04-02 16:04:18 -07:00
parent 3cdee540bf
commit 0c83e2d0ad
3 changed files with 4 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ This is just a simple prototype. To get to production would need:
- 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
- this is on aws+sandbox@iron.io account
- go build ./src/router; sudo ./router
- iron_worker upload -e staging --project-id 51034bc3c2e603384b00a092 --host routertest.irondns.info sinatra
- visit http://routertest.iron.io (or ruby client.rb)

View File

@@ -9,7 +9,7 @@
"logging": {
"to": "papertrail",
"level": "debug",
"prefix": "router"
"prefix": "router_staging"
},
"mongo_auth": {
"database": "ironworker",

View File

@@ -126,10 +126,11 @@ func main() {
s := r.Host("router.irondns.info").Subrouter()
s.Handle("/1/projects/{project_id:[0-9a-fA-F]{24}}/register", &common.AuthHandler{&Register{}, ironAuth})
s.HandleFunc("/ping", Ping) // for ELB health check
s.HandleFunc("/ping", Ping)
s.Handle("/addworker", &WorkerHandler{})
s.HandleFunc("/", Ping)
r.HandleFunc("/elb-ping-router", Ping) // for ELB health check
// Now for everyone else:
r.HandleFunc("/", ProxyFunc)