{"action":"created","issue":{"url":"https://api.github.com/repos/dj/hatch/issues/8","labels_url":"https://api.github.com/repos/dj/hatch/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/dj/hatch/issues/8/comments","events_url":"https://api.github.com/repos/dj/hatch/issues/8/events","html_url":"https://github.com/dj/hatch/pull/8","id":66710564,"number":8,"title":"Deploy script","user":{"login":"yacn","id":4542094,"avatar_url":"https://avatars.githubusercontent.com/u/4542094?v=3","gravatar_id":"","url":"https://api.github.com/users/yacn","html_url":"https://github.com/yacn","followers_url":"https://api.github.com/users/yacn/followers","following_url":"https://api.github.com/users/yacn/following{/other_user}","gists_url":"https://api.github.com/users/yacn/gists{/gist_id}","starred_url":"https://api.github.com/users/yacn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacn/subscriptions","organizations_url":"https://api.github.com/users/yacn/orgs","repos_url":"https://api.github.com/users/yacn/repos","events_url":"https://api.github.com/users/yacn/events{/privacy}","received_events_url":"https://api.github.com/users/yacn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-06T21:30:33Z","updated_at":"2015-04-11T20:16:50Z","closed_at":"2015-04-11T20:16:50Z","pull_request":{"url":"https://api.github.com/repos/dj/hatch/pulls/8","html_url":"https://github.com/dj/hatch/pull/8","diff_url":"https://github.com/dj/hatch/pull/8.diff","patch_url":"https://github.com/dj/hatch/pull/8.patch"},"body":"The script uses [Fabric](http://www.fabfile.org/) to deploy the latest code from the master branch to the staging server. You can install it via `pip install fabric`.\r\n\r\n* Expects the environment variable `HATCH_API_URL` to determine where to deploy. This is available in chat. You'll also need to send me your SSH pub key before you'll be able to run the script.\r\n* Assumes the dependencies/libraries are vendored in `node_modules` at the root of the repository.\r\n* Tries to run tests locally before attempting to deploy (meaning, you must have `mocha` installed in your `node_modules` directory). If (when) they fail, you'll be prompted asking if you're sure you want to proceed etc.\r\n\r\nUsage: `fab deploy`\r\n\r\nTested by using it to deploy the latest master branch to the staging server (which you can see as it now  has the modal window when authenticating to Twitter).\r\n"},"comment":{"url":"https://api.github.com/repos/dj/hatch/issues/comments/91921065","html_url":"https://github.com/dj/hatch/pull/8#issuecomment-91921065","issue_url":"https://api.github.com/repos/dj/hatch/issues/8","id":91921065,"user":{"login":"yacn","id":4542094,"avatar_url":"https://avatars.githubusercontent.com/u/4542094?v=3","gravatar_id":"","url":"https://api.github.com/users/yacn","html_url":"https://github.com/yacn","followers_url":"https://api.github.com/users/yacn/followers","following_url":"https://api.github.com/users/yacn/following{/other_user}","gists_url":"https://api.github.com/users/yacn/gists{/gist_id}","starred_url":"https://api.github.com/users/yacn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacn/subscriptions","organizations_url":"https://api.github.com/users/yacn/orgs","repos_url":"https://api.github.com/users/yacn/repos","events_url":"https://api.github.com/users/yacn/events{/privacy}","received_events_url":"https://api.github.com/users/yacn/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T20:16:50Z","updated_at":"2015-04-11T20:16:50Z","body":"@dj No worries, I can update the build script, I'll create a new PR with the changes."}}