{"action":"created","issue":{"url":"https://api.github.com/repos/mysociety/mapit.mysociety.org/issues/19","repository_url":"https://api.github.com/repos/mysociety/mapit.mysociety.org","labels_url":"https://api.github.com/repos/mysociety/mapit.mysociety.org/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/mapit.mysociety.org/issues/19/comments","events_url":"https://api.github.com/repos/mysociety/mapit.mysociety.org/issues/19/events","html_url":"https://github.com/mysociety/mapit.mysociety.org/issues/19","id":162720748,"number":19,"title":"Go live (without Varnish)","user":{"login":"stevenday","id":663700,"avatar_url":"https://avatars.githubusercontent.com/u/663700?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenday","html_url":"https://github.com/stevenday","followers_url":"https://api.github.com/users/stevenday/followers","following_url":"https://api.github.com/users/stevenday/following{/other_user}","gists_url":"https://api.github.com/users/stevenday/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenday/subscriptions","organizations_url":"https://api.github.com/users/stevenday/orgs","repos_url":"https://api.github.com/users/stevenday/repos","events_url":"https://api.github.com/users/stevenday/events{/privacy}","received_events_url":"https://api.github.com/users/stevenday/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-28T15:51:04Z","updated_at":"2016-06-29T14:34:58Z","closed_at":null,"body":"I'm going to attempt to put this code live in place of mapit.mysociety.org, without the varnish config in place initially, as a test of things. \r\n\r\n## Go live plan\r\n- [ ] update vhosts.pl to swap the site definition used for mapit from `mapit` to `mapit.mysociety.org`\r\n- [ ] update vhosts/mapit.mysociety.org_conf_general.yml.ugly et al to have the necessary config for the live site (probably worth moving this to a folder/individual site setup, because the config files are quite long\r\n- [ ] back up the mapit db\r\n\r\n### On stork (for argument's sake)\r\n- [ ] backup `/data/vhosts/mapit.mysociety.org`\r\n- [ ] delete `/data/vhosts/mapit.mysociety.org` (seems safer to make sure everything is re-created afresh, there are no weird git conflict issues, and nothing old is left over inadvertently)\r\n- [ ] run `mysociety vhost` to deploy the site\r\n- [ ] run `manage.py migrate sites --fake-initial` on the server we just re-deployed to (because we're upgrading from a django which is pre-django migrations and this will have failed during the deploy\r\n- [ ] re-deploy to re-run any other migrations that got stopped by the sites issue (I don't think there will be any, but I'm not sure if the order is deterministic) and things that come later in `post_deploy_actions.bash`.\r\n- [ ] Double check that vhost isn't doing anything terrible\r\n\r\n### On milo\r\n- [ ] Repeat the backup `/data/vhosts/mapit.mysociety.org`, delete, deploy steps from stork\r\n\r\n## Roll back plan\r\nIf something unexpected goes wrong, the rollback plan is as follows:\r\n- [ ] Reset the vhosts.pl site setting for mapit.mysociety.org\r\n- [ ] Restore the db from before the changes\r\n- [ ] Restore the `/data/vhosts/mapit.mysociety.org` folder\r\n- [ ] Re-deploy mapit (probably could just graceful apache, but better safe than sorry)."},"comment":{"url":"https://api.github.com/repos/mysociety/mapit.mysociety.org/issues/comments/229375338","html_url":"https://github.com/mysociety/mapit.mysociety.org/issues/19#issuecomment-229375338","issue_url":"https://api.github.com/repos/mysociety/mapit.mysociety.org/issues/19","id":229375338,"user":{"login":"stevenday","id":663700,"avatar_url":"https://avatars.githubusercontent.com/u/663700?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenday","html_url":"https://github.com/stevenday","followers_url":"https://api.github.com/users/stevenday/followers","following_url":"https://api.github.com/users/stevenday/following{/other_user}","gists_url":"https://api.github.com/users/stevenday/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenday/subscriptions","organizations_url":"https://api.github.com/users/stevenday/orgs","repos_url":"https://api.github.com/users/stevenday/repos","events_url":"https://api.github.com/users/stevenday/events{/privacy}","received_events_url":"https://api.github.com/users/stevenday/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T14:34:58Z","updated_at":"2016-06-29T14:34:58Z","body":"@dracos - thanks for the reminder about the libsass update - I've updated the script in this repo to match (scripts in bin aren't available from mapit when we install it via pip so I had to copy it). I've also mirrored the conf/packages updates. I can't see anything else in the recent commits that should affect things.\r\n\r\nWith the sites table, yes, you're right - the sites framework was removed in https://github.com/mysociety/mapit/commit/4b7e5f8463d659c6cbe79f942d40f56b8c93a77b, so the table that's currently in the db must have been from then. I'll remove it now to solve that conflict, as it makes things simpler.\r\n\r\nThanks!"}}
{"actor":{"display_login":"stevenday"}}