{"action":"created","comment":{"url":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/comments/55154811","id":55154811,"diff_hunk":"@@ -4,4 +4,5 @@\n #   runserver 0.0.0.0:8000\n #   syncdb --migrate\n # Add --traceback to print out more.\n+source ../venv/bin/activate","path":"codalab/manage","position":4,"original_position":4,"commit_id":"3c2839873cc9909dd96a7f1dd1947bb79033cf55","original_commit_id":"3c2839873cc9909dd96a7f1dd1947bb79033cf55","user":{"login":"klopyrev","id":5249090,"avatar_url":"https://avatars.githubusercontent.com/u/5249090?v=3","gravatar_id":"","url":"https://api.github.com/users/klopyrev","html_url":"https://github.com/klopyrev","followers_url":"https://api.github.com/users/klopyrev/followers","following_url":"https://api.github.com/users/klopyrev/following{/other_user}","gists_url":"https://api.github.com/users/klopyrev/gists{/gist_id}","starred_url":"https://api.github.com/users/klopyrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klopyrev/subscriptions","organizations_url":"https://api.github.com/users/klopyrev/orgs","repos_url":"https://api.github.com/users/klopyrev/repos","events_url":"https://api.github.com/users/klopyrev/events{/privacy}","received_events_url":"https://api.github.com/users/klopyrev/received_events","type":"User","site_admin":false},"body":"Yup, some of the generated config files use the VIRTUAL_ENV variable.","created_at":"2016-03-07T01:49:25Z","updated_at":"2016-03-07T01:49:25Z","html_url":"https://github.com/codalab/codalab-worksheets/pull/109#discussion_r55154811","pull_request_url":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/comments/55154811"},"html":{"href":"https://github.com/codalab/codalab-worksheets/pull/109#discussion_r55154811"},"pull_request":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109","id":61639739,"html_url":"https://github.com/codalab/codalab-worksheets/pull/109","diff_url":"https://github.com/codalab/codalab-worksheets/pull/109.diff","patch_url":"https://github.com/codalab/codalab-worksheets/pull/109.patch","issue_url":"https://api.github.com/repos/codalab/codalab-worksheets/issues/109","number":109,"state":"open","locked":false,"title":"Set up Nginx for the REST api","user":{"login":"klopyrev","id":5249090,"avatar_url":"https://avatars.githubusercontent.com/u/5249090?v=3","gravatar_id":"","url":"https://api.github.com/users/klopyrev","html_url":"https://github.com/klopyrev","followers_url":"https://api.github.com/users/klopyrev/followers","following_url":"https://api.github.com/users/klopyrev/following{/other_user}","gists_url":"https://api.github.com/users/klopyrev/gists{/gist_id}","starred_url":"https://api.github.com/users/klopyrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klopyrev/subscriptions","organizations_url":"https://api.github.com/users/klopyrev/orgs","repos_url":"https://api.github.com/users/klopyrev/repos","events_url":"https://api.github.com/users/klopyrev/events{/privacy}","received_events_url":"https://api.github.com/users/klopyrev/received_events","type":"User","site_admin":false},"body":"3 changes, specifically:\r\n1) Get config_gen to run again locally (It was failing on SSL_CERTIFICATE|length).\r\n2) Add the REST server reverse proxy rule.\r\n3) Set up Nginx for local development. I'll add instructions to the Wiki once the code is checked in, but basically:\r\n\r\n\r\ncl server\r\ncl rest-server\r\ncd codalab-worksheets/codalab\r\n./manage runserver 127.0.0.1:2700\r\n\r\nsudo apt-get install nginx\r\n./manage config_gen\r\nsudo cp config/generated/nginx.conf /etc/nginx/sites-enabled\r\nsudo service nginx restart\r\n\r\n\r\n@percyliang @kashizui @andreweduffy ","created_at":"2016-03-03T22:54:26Z","updated_at":"2016-03-07T01:49:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc2a5f800dd999d37415246ded7694c587f0ecc9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109/commits","review_comments_url":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109/comments","review_comment_url":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codalab/codalab-worksheets/issues/109/comments","statuses_url":"https://api.github.com/repos/codalab/codalab-worksheets/statuses/3c2839873cc9909dd96a7f1dd1947bb79033cf55","head":{"label":"klopyrev:nginx","ref":"nginx","sha":"3c2839873cc9909dd96a7f1dd1947bb79033cf55","user":{"login":"klopyrev","id":5249090,"avatar_url":"https://avatars.githubusercontent.com/u/5249090?v=3","gravatar_id":"","url":"https://api.github.com/users/klopyrev","html_url":"https://github.com/klopyrev","followers_url":"https://api.github.com/users/klopyrev/followers","following_url":"https://api.github.com/users/klopyrev/following{/other_user}","gists_url":"https://api.github.com/users/klopyrev/gists{/gist_id}","starred_url":"https://api.github.com/users/klopyrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klopyrev/subscriptions","organizations_url":"https://api.github.com/users/klopyrev/orgs","repos_url":"https://api.github.com/users/klopyrev/repos","events_url":"https://api.github.com/users/klopyrev/events{/privacy}","received_events_url":"https://api.github.com/users/klopyrev/received_events","type":"User","site_admin":false},"repo":{"id":49246474,"name":"codalab-worksheets","full_name":"klopyrev/codalab-worksheets","owner":{"login":"klopyrev","id":5249090,"avatar_url":"https://avatars.githubusercontent.com/u/5249090?v=3","gravatar_id":"","url":"https://api.github.com/users/klopyrev","html_url":"https://github.com/klopyrev","followers_url":"https://api.github.com/users/klopyrev/followers","following_url":"https://api.github.com/users/klopyrev/following{/other_user}","gists_url":"https://api.github.com/users/klopyrev/gists{/gist_id}","starred_url":"https://api.github.com/users/klopyrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klopyrev/subscriptions","organizations_url":"https://api.github.com/users/klopyrev/orgs","repos_url":"https://api.github.com/users/klopyrev/repos","events_url":"https://api.github.com/users/klopyrev/events{/privacy}","received_events_url":"https://api.github.com/users/klopyrev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klopyrev/codalab-worksheets","description":"CodaLab Worksheets","fork":true,"url":"https://api.github.com/repos/klopyrev/codalab-worksheets","forks_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/forks","keys_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/teams","hooks_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/hooks","issue_events_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/issues/events{/number}","events_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/events","assignees_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/assignees{/user}","branches_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/branches{/branch}","tags_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/tags","blobs_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/git/refs{/sha}","trees_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/statuses/{sha}","languages_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/languages","stargazers_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/stargazers","contributors_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/contributors","subscribers_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/subscribers","subscription_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/subscription","commits_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/commits{/sha}","git_commits_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/git/commits{/sha}","comments_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/comments{/number}","issue_comment_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/issues/comments{/number}","contents_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/contents/{+path}","compare_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/merges","archive_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/downloads","issues_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/issues{/number}","pulls_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/pulls{/number}","milestones_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/milestones{/number}","notifications_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/labels{/name}","releases_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/releases{/id}","deployments_url":"https://api.github.com/repos/klopyrev/codalab-worksheets/deployments","created_at":"2016-01-08T03:18:25Z","updated_at":"2016-01-15T21:53:59Z","pushed_at":"2016-03-05T22:28:25Z","git_url":"git://github.com/klopyrev/codalab-worksheets.git","ssh_url":"git@github.com:klopyrev/codalab-worksheets.git","clone_url":"https://github.com/klopyrev/codalab-worksheets.git","svn_url":"https://github.com/klopyrev/codalab-worksheets","homepage":null,"size":25296,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codalab:develop","ref":"develop","sha":"dea77cd1efc9c57d3ad6fced8b0eee74223154ee","user":{"login":"codalab","id":4633552,"avatar_url":"https://avatars.githubusercontent.com/u/4633552?v=3","gravatar_id":"","url":"https://api.github.com/users/codalab","html_url":"https://github.com/codalab","followers_url":"https://api.github.com/users/codalab/followers","following_url":"https://api.github.com/users/codalab/following{/other_user}","gists_url":"https://api.github.com/users/codalab/gists{/gist_id}","starred_url":"https://api.github.com/users/codalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codalab/subscriptions","organizations_url":"https://api.github.com/users/codalab/orgs","repos_url":"https://api.github.com/users/codalab/repos","events_url":"https://api.github.com/users/codalab/events{/privacy}","received_events_url":"https://api.github.com/users/codalab/received_events","type":"User","site_admin":false},"repo":{"id":48640313,"name":"codalab-worksheets","full_name":"codalab/codalab-worksheets","owner":{"login":"codalab","id":4633552,"avatar_url":"https://avatars.githubusercontent.com/u/4633552?v=3","gravatar_id":"","url":"https://api.github.com/users/codalab","html_url":"https://github.com/codalab","followers_url":"https://api.github.com/users/codalab/followers","following_url":"https://api.github.com/users/codalab/following{/other_user}","gists_url":"https://api.github.com/users/codalab/gists{/gist_id}","starred_url":"https://api.github.com/users/codalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codalab/subscriptions","organizations_url":"https://api.github.com/users/codalab/orgs","repos_url":"https://api.github.com/users/codalab/repos","events_url":"https://api.github.com/users/codalab/events{/privacy}","received_events_url":"https://api.github.com/users/codalab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codalab/codalab-worksheets","description":"CodaLab Worksheets","fork":false,"url":"https://api.github.com/repos/codalab/codalab-worksheets","forks_url":"https://api.github.com/repos/codalab/codalab-worksheets/forks","keys_url":"https://api.github.com/repos/codalab/codalab-worksheets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codalab/codalab-worksheets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codalab/codalab-worksheets/teams","hooks_url":"https://api.github.com/repos/codalab/codalab-worksheets/hooks","issue_events_url":"https://api.github.com/repos/codalab/codalab-worksheets/issues/events{/number}","events_url":"https://api.github.com/repos/codalab/codalab-worksheets/events","assignees_url":"https://api.github.com/repos/codalab/codalab-worksheets/assignees{/user}","branches_url":"https://api.github.com/repos/codalab/codalab-worksheets/branches{/branch}","tags_url":"https://api.github.com/repos/codalab/codalab-worksheets/tags","blobs_url":"https://api.github.com/repos/codalab/codalab-worksheets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codalab/codalab-worksheets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codalab/codalab-worksheets/git/refs{/sha}","trees_url":"https://api.github.com/repos/codalab/codalab-worksheets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codalab/codalab-worksheets/statuses/{sha}","languages_url":"https://api.github.com/repos/codalab/codalab-worksheets/languages","stargazers_url":"https://api.github.com/repos/codalab/codalab-worksheets/stargazers","contributors_url":"https://api.github.com/repos/codalab/codalab-worksheets/contributors","subscribers_url":"https://api.github.com/repos/codalab/codalab-worksheets/subscribers","subscription_url":"https://api.github.com/repos/codalab/codalab-worksheets/subscription","commits_url":"https://api.github.com/repos/codalab/codalab-worksheets/commits{/sha}","git_commits_url":"https://api.github.com/repos/codalab/codalab-worksheets/git/commits{/sha}","comments_url":"https://api.github.com/repos/codalab/codalab-worksheets/comments{/number}","issue_comment_url":"https://api.github.com/repos/codalab/codalab-worksheets/issues/comments{/number}","contents_url":"https://api.github.com/repos/codalab/codalab-worksheets/contents/{+path}","compare_url":"https://api.github.com/repos/codalab/codalab-worksheets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codalab/codalab-worksheets/merges","archive_url":"https://api.github.com/repos/codalab/codalab-worksheets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codalab/codalab-worksheets/downloads","issues_url":"https://api.github.com/repos/codalab/codalab-worksheets/issues{/number}","pulls_url":"https://api.github.com/repos/codalab/codalab-worksheets/pulls{/number}","milestones_url":"https://api.github.com/repos/codalab/codalab-worksheets/milestones{/number}","notifications_url":"https://api.github.com/repos/codalab/codalab-worksheets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codalab/codalab-worksheets/labels{/name}","releases_url":"https://api.github.com/repos/codalab/codalab-worksheets/releases{/id}","deployments_url":"https://api.github.com/repos/codalab/codalab-worksheets/deployments","created_at":"2015-12-27T09:51:16Z","updated_at":"2016-03-03T20:24:25Z","pushed_at":"2016-03-06T04:06:19Z","git_url":"git://github.com/codalab/codalab-worksheets.git","ssh_url":"git@github.com:codalab/codalab-worksheets.git","clone_url":"https://github.com/codalab/codalab-worksheets.git","svn_url":"https://github.com/codalab/codalab-worksheets","homepage":null,"size":25411,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":54,"forks":3,"open_issues":54,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109"},"html":{"href":"https://github.com/codalab/codalab-worksheets/pull/109"},"issue":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/issues/109"},"comments":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/codalab/codalab-worksheets/statuses/3c2839873cc9909dd96a7f1dd1947bb79033cf55"}}}}