{"action":"created","comment":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/40106887","id":40106887,"diff_hunk":"@@ -29,3 +29,4 @@ function init() {\n \n // Expose public methods.\n module.exports = { init: init };\n+content.localhost","path":"src/static/js/modules/external-site-redirect.js","position":13,"original_position":13,"commit_id":"4b31620b8ad322ce5cba1d23667d5e386a4efbb6","original_commit_id":"4b31620b8ad322ce5cba1d23667d5e386a4efbb6","user":{"login":"kurtw","id":1412978,"avatar_url":"https://avatars.githubusercontent.com/u/1412978?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtw","html_url":"https://github.com/kurtw","followers_url":"https://api.github.com/users/kurtw/followers","following_url":"https://api.github.com/users/kurtw/following{/other_user}","gists_url":"https://api.github.com/users/kurtw/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtw/subscriptions","organizations_url":"https://api.github.com/users/kurtw/orgs","repos_url":"https://api.github.com/users/kurtw/repos","events_url":"https://api.github.com/users/kurtw/events{/privacy}","received_events_url":"https://api.github.com/users/kurtw/received_events","type":"User","site_admin":false},"body":"...removing.","created_at":"2015-09-22T16:15:04Z","updated_at":"2015-09-22T16:15:04Z","html_url":"https://github.com/cfpb/cfgov-refresh/pull/999#discussion_r40106887","pull_request_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999","_links":{"self":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/40106887"},"html":{"href":"https://github.com/cfpb/cfgov-refresh/pull/999#discussion_r40106887"},"pull_request":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999"}}},"pull_request":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999","id":45607665,"html_url":"https://github.com/cfpb/cfgov-refresh/pull/999","diff_url":"https://github.com/cfpb/cfgov-refresh/pull/999.diff","patch_url":"https://github.com/cfpb/cfgov-refresh/pull/999.patch","issue_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/999","number":999,"state":"open","locked":false,"title":"Add V1Page model and hooks for 2 site publishing","user":{"login":"kurtw","id":1412978,"avatar_url":"https://avatars.githubusercontent.com/u/1412978?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtw","html_url":"https://github.com/kurtw","followers_url":"https://api.github.com/users/kurtw/followers","following_url":"https://api.github.com/users/kurtw/following{/other_user}","gists_url":"https://api.github.com/users/kurtw/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtw/subscriptions","organizations_url":"https://api.github.com/users/kurtw/orgs","repos_url":"https://api.github.com/users/kurtw/repos","events_url":"https://api.github.com/users/kurtw/events{/privacy}","received_events_url":"https://api.github.com/users/kurtw/received_events","type":"User","site_admin":false},"body":"# Here we go\r\nThis is the work to prove the second hypothesis, which states that we should be able to publish to a `content` site separately from production and that the content on the `content` site should be viewable from within the bureau only without the need for a user account. Phew.\r\n\r\n**This isn't the only thing you'll need.** My fork of Wagtail is necessary to get this running as well. (Unfortunately. We don't really want to have to maintain our project.)\r\n\r\n## A couple of things to mention before you start\r\nYou should delete your sqlite database file first. It's just easier that way. Then you have to run `python cfgov/manage.py migrate` before you start to set up the database. After that, run `createsuperuser` and then `pip install -e ../wherever/you/pulled/down/my/fork/of/wagtail`. Make sure you're on the `dual-wield-sites` branch. Go ahead and run `runserver`.\r\n\r\n**THIS STEP IS NECESSARY**\r\nGo to Settings, click Sites, and then add a site with the hostname `content.localhost` with the same settings as the `localhost` site, except change both of the sites to point to port 8000.\r\n\r\nTest by:\r\n- creating a Blog Page under the site's homepage and saving it as a draft. \r\n- Go to `content.localhost:8000/blog-post-slug` and see if it's there. No? Good. Do the same thing for `localhost:8000/blog-post-slug`.\r\n- Go back to editing the page and then click `Share on Content`. Check the content site. There? Good. Check `localhost`. There? Bad.\r\n- Repeat last step for `Publish to WWW`. Both sites should render the page.\r\n\r\nThe actual template for the page is simple. Only temporary. _The URL structure isn't implemented yet._ This only adds the ability to `Share on Content`. \r\n\r\n- @kave \r\n- @rosskarchner ","created_at":"2015-09-21T22:20:23Z","updated_at":"2015-09-22T16:15:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a75eb75728d35823964ecf244253b7de7333de0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999/commits","review_comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999/comments","review_comment_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/999/comments","statuses_url":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/4b31620b8ad322ce5cba1d23667d5e386a4efbb6","head":{"label":"kurtw:dual-wield-sites","ref":"dual-wield-sites","sha":"4b31620b8ad322ce5cba1d23667d5e386a4efbb6","user":{"login":"kurtw","id":1412978,"avatar_url":"https://avatars.githubusercontent.com/u/1412978?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtw","html_url":"https://github.com/kurtw","followers_url":"https://api.github.com/users/kurtw/followers","following_url":"https://api.github.com/users/kurtw/following{/other_user}","gists_url":"https://api.github.com/users/kurtw/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtw/subscriptions","organizations_url":"https://api.github.com/users/kurtw/orgs","repos_url":"https://api.github.com/users/kurtw/repos","events_url":"https://api.github.com/users/kurtw/events{/privacy}","received_events_url":"https://api.github.com/users/kurtw/received_events","type":"User","site_admin":false},"repo":{"id":26283151,"name":"cfgov-refresh","full_name":"kurtw/cfgov-refresh","owner":{"login":"kurtw","id":1412978,"avatar_url":"https://avatars.githubusercontent.com/u/1412978?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtw","html_url":"https://github.com/kurtw","followers_url":"https://api.github.com/users/kurtw/followers","following_url":"https://api.github.com/users/kurtw/following{/other_user}","gists_url":"https://api.github.com/users/kurtw/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtw/subscriptions","organizations_url":"https://api.github.com/users/kurtw/orgs","repos_url":"https://api.github.com/users/kurtw/repos","events_url":"https://api.github.com/users/kurtw/events{/privacy}","received_events_url":"https://api.github.com/users/kurtw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kurtw/cfgov-refresh","description":"","fork":true,"url":"https://api.github.com/repos/kurtw/cfgov-refresh","forks_url":"https://api.github.com/repos/kurtw/cfgov-refresh/forks","keys_url":"https://api.github.com/repos/kurtw/cfgov-refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kurtw/cfgov-refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kurtw/cfgov-refresh/teams","hooks_url":"https://api.github.com/repos/kurtw/cfgov-refresh/hooks","issue_events_url":"https://api.github.com/repos/kurtw/cfgov-refresh/issues/events{/number}","events_url":"https://api.github.com/repos/kurtw/cfgov-refresh/events","assignees_url":"https://api.github.com/repos/kurtw/cfgov-refresh/assignees{/user}","branches_url":"https://api.github.com/repos/kurtw/cfgov-refresh/branches{/branch}","tags_url":"https://api.github.com/repos/kurtw/cfgov-refresh/tags","blobs_url":"https://api.github.com/repos/kurtw/cfgov-refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kurtw/cfgov-refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kurtw/cfgov-refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/kurtw/cfgov-refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kurtw/cfgov-refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/kurtw/cfgov-refresh/languages","stargazers_url":"https://api.github.com/repos/kurtw/cfgov-refresh/stargazers","contributors_url":"https://api.github.com/repos/kurtw/cfgov-refresh/contributors","subscribers_url":"https://api.github.com/repos/kurtw/cfgov-refresh/subscribers","subscription_url":"https://api.github.com/repos/kurtw/cfgov-refresh/subscription","commits_url":"https://api.github.com/repos/kurtw/cfgov-refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/kurtw/cfgov-refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/kurtw/cfgov-refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/kurtw/cfgov-refresh/issues/comments{/number}","contents_url":"https://api.github.com/repos/kurtw/cfgov-refresh/contents/{+path}","compare_url":"https://api.github.com/repos/kurtw/cfgov-refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kurtw/cfgov-refresh/merges","archive_url":"https://api.github.com/repos/kurtw/cfgov-refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kurtw/cfgov-refresh/downloads","issues_url":"https://api.github.com/repos/kurtw/cfgov-refresh/issues{/number}","pulls_url":"https://api.github.com/repos/kurtw/cfgov-refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/kurtw/cfgov-refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/kurtw/cfgov-refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kurtw/cfgov-refresh/labels{/name}","releases_url":"https://api.github.com/repos/kurtw/cfgov-refresh/releases{/id}","created_at":"2014-11-06T18:13:46Z","updated_at":"2015-03-27T19:56:38Z","pushed_at":"2015-09-22T14:50:14Z","git_url":"git://github.com/kurtw/cfgov-refresh.git","ssh_url":"git@github.com:kurtw/cfgov-refresh.git","clone_url":"https://github.com/kurtw/cfgov-refresh.git","svn_url":"https://github.com/kurtw/cfgov-refresh","homepage":"http://cfpb.github.io/cfgov-refresh/","size":26442,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"cfpb:flapjack","ref":"flapjack","sha":"5b19c7a995883d0d729625d5c553f8f2166cb382","user":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"repo":{"id":18852566,"name":"cfgov-refresh","full_name":"cfpb/cfgov-refresh","owner":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfpb/cfgov-refresh","description":"In-progress redesign of the consumerfinance.gov website.","fork":false,"url":"https://api.github.com/repos/cfpb/cfgov-refresh","forks_url":"https://api.github.com/repos/cfpb/cfgov-refresh/forks","keys_url":"https://api.github.com/repos/cfpb/cfgov-refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfpb/cfgov-refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfpb/cfgov-refresh/teams","hooks_url":"https://api.github.com/repos/cfpb/cfgov-refresh/hooks","issue_events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/events{/number}","events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/events","assignees_url":"https://api.github.com/repos/cfpb/cfgov-refresh/assignees{/user}","branches_url":"https://api.github.com/repos/cfpb/cfgov-refresh/branches{/branch}","tags_url":"https://api.github.com/repos/cfpb/cfgov-refresh/tags","blobs_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/cfpb/cfgov-refresh/languages","stargazers_url":"https://api.github.com/repos/cfpb/cfgov-refresh/stargazers","contributors_url":"https://api.github.com/repos/cfpb/cfgov-refresh/contributors","subscribers_url":"https://api.github.com/repos/cfpb/cfgov-refresh/subscribers","subscription_url":"https://api.github.com/repos/cfpb/cfgov-refresh/subscription","commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfpb/cfgov-refresh/contents/{+path}","compare_url":"https://api.github.com/repos/cfpb/cfgov-refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfpb/cfgov-refresh/merges","archive_url":"https://api.github.com/repos/cfpb/cfgov-refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfpb/cfgov-refresh/downloads","issues_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues{/number}","pulls_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/cfpb/cfgov-refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/cfpb/cfgov-refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfpb/cfgov-refresh/labels{/name}","releases_url":"https://api.github.com/repos/cfpb/cfgov-refresh/releases{/id}","created_at":"2014-04-16T19:22:03Z","updated_at":"2015-07-16T17:30:22Z","pushed_at":"2015-09-22T16:13:11Z","git_url":"git://github.com/cfpb/cfgov-refresh.git","ssh_url":"git@github.com:cfpb/cfgov-refresh.git","clone_url":"https://github.com/cfpb/cfgov-refresh.git","svn_url":"https://github.com/cfpb/cfgov-refresh","homepage":"","size":101068,"stargazers_count":9,"watchers_count":9,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":102,"forks":18,"open_issues":102,"watchers":9,"default_branch":"flapjack"}},"_links":{"self":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999"},"html":{"href":"https://github.com/cfpb/cfgov-refresh/pull/999"},"issue":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/999"},"comments":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/999/comments"},"review_comments":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999/comments"},"review_comment":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/999/commits"},"statuses":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/4b31620b8ad322ce5cba1d23667d5e386a4efbb6"}}}}