{"action":"created","issue":{"url":"https://api.github.com/repos/18F/cf-blue-green/issues/15","labels_url":"https://api.github.com/repos/18F/cf-blue-green/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/18F/cf-blue-green/issues/15/comments","events_url":"https://api.github.com/repos/18F/cf-blue-green/issues/15/events","html_url":"https://github.com/18F/cf-blue-green/pull/15","id":100888929,"number":15,"title":"Add deploy script for continuous deployment with Travis","user":{"login":"dhcole","id":170641,"avatar_url":"https://avatars.githubusercontent.com/u/170641?v=3","gravatar_id":"","url":"https://api.github.com/users/dhcole","html_url":"https://github.com/dhcole","followers_url":"https://api.github.com/users/dhcole/followers","following_url":"https://api.github.com/users/dhcole/following{/other_user}","gists_url":"https://api.github.com/users/dhcole/gists{/gist_id}","starred_url":"https://api.github.com/users/dhcole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhcole/subscriptions","organizations_url":"https://api.github.com/users/dhcole/orgs","repos_url":"https://api.github.com/users/dhcole/repos","events_url":"https://api.github.com/users/dhcole/events{/privacy}","received_events_url":"https://api.github.com/users/dhcole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T23:11:09Z","updated_at":"2015-08-17T17:00:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/18F/cf-blue-green/pulls/15","html_url":"https://github.com/18F/cf-blue-green/pull/15","diff_url":"https://github.com/18F/cf-blue-green/pull/15.diff","patch_url":"https://github.com/18F/cf-blue-green/pull/15.patch"},"body":"Adds a script and instructions for continuous deployment with Travis. \r\n\r\nAdded to the readme:\r\n\r\n### Using with Travis\r\n\r\nTravis supports [continuous deployment](http://docs.travis-ci.com/user/deployment/), which will automatically deploy your application after its tests pass on a specified branch. To use `cf-blue-green` with Travis, you need to use a [script provider](http://docs.travis-ci.com/user/deployment/script/) instead of the default Cloud Foundry provider. Your Cloud Foundry settings are read from environment variables.\r\n\r\nSet up continuous deployment with the following settings in your `.travis.yml` file:\r\n\r\n```yml\r\nbefore_install: npm install -g cf-blue-green\r\nenv:\r\n  global:\r\n  - CF_APP=[app name]\r\n  - CF_API=[API endpoint]\r\n  - CF_USERNAME=[user]\r\n  - CF_ORGANIZATION=[organization]\r\n  - CF_SPACE=[space]\r\n  - secure: [CF_PASSWORD=[encrypted with Travis](http://docs.travis-ci.com/user/environment-variables/#Encrypted-Variables)]\r\ndeploy:\r\n  provider: script\r\n  script: cf-blue-green-travis\r\n  on:\r\n    branch: [git branch you want to deploy]\r\n```"},"comment":{"url":"https://api.github.com/repos/18F/cf-blue-green/issues/comments/131889449","html_url":"https://github.com/18F/cf-blue-green/pull/15#issuecomment-131889449","issue_url":"https://api.github.com/repos/18F/cf-blue-green/issues/15","id":131889449,"user":{"login":"dhcole","id":170641,"avatar_url":"https://avatars.githubusercontent.com/u/170641?v=3","gravatar_id":"","url":"https://api.github.com/users/dhcole","html_url":"https://github.com/dhcole","followers_url":"https://api.github.com/users/dhcole/followers","following_url":"https://api.github.com/users/dhcole/following{/other_user}","gists_url":"https://api.github.com/users/dhcole/gists{/gist_id}","starred_url":"https://api.github.com/users/dhcole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhcole/subscriptions","organizations_url":"https://api.github.com/users/dhcole/orgs","repos_url":"https://api.github.com/users/dhcole/repos","events_url":"https://api.github.com/users/dhcole/events{/privacy}","received_events_url":"https://api.github.com/users/dhcole/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T17:00:31Z","updated_at":"2015-08-17T17:00:31Z","body":"I think this should be ready for a second look now."}}