{"action":"created","issue":{"url":"https://api.github.com/repos/ushahidi/platform/issues/636","labels_url":"https://api.github.com/repos/ushahidi/platform/issues/636/labels{/name}","comments_url":"https://api.github.com/repos/ushahidi/platform/issues/636/comments","events_url":"https://api.github.com/repos/ushahidi/platform/issues/636/events","html_url":"https://github.com/ushahidi/platform/issues/636","id":102672157,"number":636,"title":"Create deployment worker","user":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ushahidi/platform/labels/3%20-%20In%20progress","name":"3 - In progress","color":"00a7ed"},{"url":"https://api.github.com/repos/ushahidi/platform/labels/Enhancement","name":"Enhancement","color":"009800"},{"url":"https://api.github.com/repos/ushahidi/platform/labels/P1%20-%20Immediate","name":"P1 - Immediate","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"zhalloran","id":446225,"avatar_url":"https://avatars.githubusercontent.com/u/446225?v=3","gravatar_id":"","url":"https://api.github.com/users/zhalloran","html_url":"https://github.com/zhalloran","followers_url":"https://api.github.com/users/zhalloran/followers","following_url":"https://api.github.com/users/zhalloran/following{/other_user}","gists_url":"https://api.github.com/users/zhalloran/gists{/gist_id}","starred_url":"https://api.github.com/users/zhalloran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhalloran/subscriptions","organizations_url":"https://api.github.com/users/zhalloran/orgs","repos_url":"https://api.github.com/users/zhalloran/repos","events_url":"https://api.github.com/users/zhalloran/events{/privacy}","received_events_url":"https://api.github.com/users/zhalloran/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ushahidi/platform/milestones/9","html_url":"https://github.com/ushahidi/platform/milestones/Cloud%20Testing","labels_url":"https://api.github.com/repos/ushahidi/platform/milestones/9/labels","id":1268420,"number":9,"title":"Cloud Testing","description":"\r\n\r\n<!---\r\n@huboard:{\"order\":9.0}\r\n-->\r\n","creator":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":2,"state":"open","created_at":"2015-08-23T23:30:03Z","updated_at":"2015-09-02T02:26:10Z","due_on":"2015-09-02T12:00:00Z","closed_at":null},"comments":9,"created_at":"2015-08-23T23:42:06Z","updated_at":"2015-09-02T23:33:51Z","closed_at":null,"body":"How do we run migrations on deployment creation?\n\nProcess:\n- Cloud app add a job to queue\n- Worker picks up the job\n- Worker runs migrations\n- ? Set initial config?\n- ? Create admin user ?\n- Worker pushes a callback to cloud API\n- Cloud UX: polls cloud api to check for status\n- Cloud app: sends email to user when deployed\n\n\nAlso tracked here: https://phabricator.ushahidi.com/T1705\n\n<!---\n@huboard:{\"milestone_order\":27.25,\"order\":0.4087944030761719,\"custom_state\":\"\"}\n-->\n"},"comment":{"url":"https://api.github.com/repos/ushahidi/platform/issues/comments/137273462","html_url":"https://github.com/ushahidi/platform/issues/636#issuecomment-137273462","issue_url":"https://api.github.com/repos/ushahidi/platform/issues/636","id":137273462,"user":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T23:33:51Z","updated_at":"2015-09-02T23:33:51Z","body":"Kohana grabs the DB stuff from the environment so environment params should still work just fine.\r\n\r\nIf you really need to push directly into the DB you can find User saving code in application/classes/Ushahidi/Repository/User.php and password hashing in application/classes/Ushahidi/Hasher/Password.php .. though it just uses `password_hash` to do the work of hashing.\r\n\r\n"}}