{"action":"created","issue":{"url":"https://api.github.com/repos/18F/C2/issues/500","labels_url":"https://api.github.com/repos/18F/C2/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/18F/C2/issues/500/comments","events_url":"https://api.github.com/repos/18F/C2/issues/500/events","html_url":"https://github.com/18F/C2/pull/500","id":96674383,"number":500,"title":"[Delivers #96622322] add zero-downtime deployment script","user":{"login":"afeld","id":86842,"avatar_url":"https://avatars.githubusercontent.com/u/86842?v=3","gravatar_id":"","url":"https://api.github.com/users/afeld","html_url":"https://github.com/afeld","followers_url":"https://api.github.com/users/afeld/followers","following_url":"https://api.github.com/users/afeld/following{/other_user}","gists_url":"https://api.github.com/users/afeld/gists{/gist_id}","starred_url":"https://api.github.com/users/afeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afeld/subscriptions","organizations_url":"https://api.github.com/users/afeld/orgs","repos_url":"https://api.github.com/users/afeld/repos","events_url":"https://api.github.com/users/afeld/events{/privacy}","received_events_url":"https://api.github.com/users/afeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-22T21:56:15Z","updated_at":"2015-07-23T15:05:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/18F/C2/pulls/500","html_url":"https://github.com/18F/C2/pull/500","diff_url":"https://github.com/18F/C2/pull/500.diff","patch_url":"https://github.com/18F/C2/pull/500.patch"},"body":"* [x] Finish testing the app switchover\r\n* [x] Call from the `release` script"},"comment":{"url":"https://api.github.com/repos/18F/C2/issues/comments/124134057","html_url":"https://github.com/18F/C2/pull/500#issuecomment-124134057","issue_url":"https://api.github.com/repos/18F/C2/issues/500","id":124134057,"user":{"login":"cmc333333","id":326918,"avatar_url":"https://avatars.githubusercontent.com/u/326918?v=3","gravatar_id":"","url":"https://api.github.com/users/cmc333333","html_url":"https://github.com/cmc333333","followers_url":"https://api.github.com/users/cmc333333/followers","following_url":"https://api.github.com/users/cmc333333/following{/other_user}","gists_url":"https://api.github.com/users/cmc333333/gists{/gist_id}","starred_url":"https://api.github.com/users/cmc333333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmc333333/subscriptions","organizations_url":"https://api.github.com/users/cmc333333/orgs","repos_url":"https://api.github.com/users/cmc333333/repos","events_url":"https://api.github.com/users/cmc333333/events{/privacy}","received_events_url":"https://api.github.com/users/cmc333333/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T15:05:06Z","updated_at":"2015-07-23T15:05:06Z","body":"> set -e stops the script if any commands fail.\r\n\r\nVery cool. It doesn't look like 400s (possibly 500s) result in error codes for curl, though?\r\n```bash\r\n(parser)vagrant@debian8:~/C2$ curl notaurl\r\ncurl: (6) Could not resolve host: notaurl\r\n(parser)vagrant@debian8:~/C2$ echo $?\r\n6\r\n(parser)vagrant@debian8:~/C2$ curl http://dfdsfdsd.18f.gov/\r\n404 Not Found: Requested route ('dfdsfdsd.18f.gov') does not exist.\r\n(parser)vagrant@debian8:~/C2$ echo $?\r\n0\r\n```"}}