{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/olympia/pulls/comments/39871004","id":39871004,"diff_hunk":"@@ -0,0 +1,21 @@\n+[supervisord]\n+logfile=/code/logs/supervisord.log\n+\n+[program:olympia]\n+command=python /code/manage.py runserver 0.0.0.0:8000\n+directory=/code","path":"docker/supervisor.conf","position":6,"original_position":6,"commit_id":"b9187e126a976a9c54ba66137a95ac896e398bec","original_commit_id":"b9187e126a976a9c54ba66137a95ac896e398bec","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"body":"I copied what we had for payments-service https://github.com/mozilla/payments-service/blob/master/docker/supervisor.conf#L5","created_at":"2015-09-18T15:58:11Z","updated_at":"2015-09-18T15:58:11Z","html_url":"https://github.com/mozilla/olympia/pull/762#discussion_r39871004","pull_request_url":"https://api.github.com/repos/mozilla/olympia/pulls/762","_links":{"self":{"href":"https://api.github.com/repos/mozilla/olympia/pulls/comments/39871004"},"html":{"href":"https://github.com/mozilla/olympia/pull/762#discussion_r39871004"},"pull_request":{"href":"https://api.github.com/repos/mozilla/olympia/pulls/762"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/olympia/pulls/762","id":45403229,"html_url":"https://github.com/mozilla/olympia/pull/762","diff_url":"https://github.com/mozilla/olympia/pull/762.diff","patch_url":"https://github.com/mozilla/olympia/pull/762.patch","issue_url":"https://api.github.com/repos/mozilla/olympia/issues/762","number":762,"state":"open","locked":false,"title":"Use supervisord for runserver","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"body":"This enables the fore-grounding the runserver process via supervisorctl to enable ipdb debugging without needing to run up the web container with --service-ports.\r\n\r\n* Changes to using supervisord to manage the runserver process\r\n* Copys the src into the image\r\n* Plus copied the bash_history stuff we had in payments across.\r\n\r\n<img alt=\"Screenshot of debuggins with ipdb\" src=\"https://cloud.githubusercontent.com/assets/1514/9959594/1395aa32-5e0d-11e5-9144-97bc6ec8a249.png\">","created_at":"2015-09-18T12:58:07Z","updated_at":"2015-09-18T15:58:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49fcdb892d06681b47b2eb042d953e4078874d82","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/olympia/pulls/762/commits","review_comments_url":"https://api.github.com/repos/mozilla/olympia/pulls/762/comments","review_comment_url":"https://api.github.com/repos/mozilla/olympia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/olympia/issues/762/comments","statuses_url":"https://api.github.com/repos/mozilla/olympia/statuses/b9187e126a976a9c54ba66137a95ac896e398bec","head":{"label":"muffinresearch:use-supervisord-for-runserver","ref":"use-supervisord-for-runserver","sha":"b9187e126a976a9c54ba66137a95ac896e398bec","user":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"repo":{"id":42522849,"name":"olympia","full_name":"muffinresearch/olympia","owner":{"login":"muffinresearch","id":1514,"avatar_url":"https://avatars.githubusercontent.com/u/1514?v=3","gravatar_id":"","url":"https://api.github.com/users/muffinresearch","html_url":"https://github.com/muffinresearch","followers_url":"https://api.github.com/users/muffinresearch/followers","following_url":"https://api.github.com/users/muffinresearch/following{/other_user}","gists_url":"https://api.github.com/users/muffinresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/muffinresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muffinresearch/subscriptions","organizations_url":"https://api.github.com/users/muffinresearch/orgs","repos_url":"https://api.github.com/users/muffinresearch/repos","events_url":"https://api.github.com/users/muffinresearch/events{/privacy}","received_events_url":"https://api.github.com/users/muffinresearch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/muffinresearch/olympia","description":"addons.mozilla.org, reloaded.","fork":true,"url":"https://api.github.com/repos/muffinresearch/olympia","forks_url":"https://api.github.com/repos/muffinresearch/olympia/forks","keys_url":"https://api.github.com/repos/muffinresearch/olympia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muffinresearch/olympia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muffinresearch/olympia/teams","hooks_url":"https://api.github.com/repos/muffinresearch/olympia/hooks","issue_events_url":"https://api.github.com/repos/muffinresearch/olympia/issues/events{/number}","events_url":"https://api.github.com/repos/muffinresearch/olympia/events","assignees_url":"https://api.github.com/repos/muffinresearch/olympia/assignees{/user}","branches_url":"https://api.github.com/repos/muffinresearch/olympia/branches{/branch}","tags_url":"https://api.github.com/repos/muffinresearch/olympia/tags","blobs_url":"https://api.github.com/repos/muffinresearch/olympia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muffinresearch/olympia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muffinresearch/olympia/git/refs{/sha}","trees_url":"https://api.github.com/repos/muffinresearch/olympia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muffinresearch/olympia/statuses/{sha}","languages_url":"https://api.github.com/repos/muffinresearch/olympia/languages","stargazers_url":"https://api.github.com/repos/muffinresearch/olympia/stargazers","contributors_url":"https://api.github.com/repos/muffinresearch/olympia/contributors","subscribers_url":"https://api.github.com/repos/muffinresearch/olympia/subscribers","subscription_url":"https://api.github.com/repos/muffinresearch/olympia/subscription","commits_url":"https://api.github.com/repos/muffinresearch/olympia/commits{/sha}","git_commits_url":"https://api.github.com/repos/muffinresearch/olympia/git/commits{/sha}","comments_url":"https://api.github.com/repos/muffinresearch/olympia/comments{/number}","issue_comment_url":"https://api.github.com/repos/muffinresearch/olympia/issues/comments{/number}","contents_url":"https://api.github.com/repos/muffinresearch/olympia/contents/{+path}","compare_url":"https://api.github.com/repos/muffinresearch/olympia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muffinresearch/olympia/merges","archive_url":"https://api.github.com/repos/muffinresearch/olympia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muffinresearch/olympia/downloads","issues_url":"https://api.github.com/repos/muffinresearch/olympia/issues{/number}","pulls_url":"https://api.github.com/repos/muffinresearch/olympia/pulls{/number}","milestones_url":"https://api.github.com/repos/muffinresearch/olympia/milestones{/number}","notifications_url":"https://api.github.com/repos/muffinresearch/olympia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muffinresearch/olympia/labels{/name}","releases_url":"https://api.github.com/repos/muffinresearch/olympia/releases{/id}","created_at":"2015-09-15T13:59:59Z","updated_at":"2015-09-15T14:00:05Z","pushed_at":"2015-09-18T12:53:51Z","git_url":"git://github.com/muffinresearch/olympia.git","ssh_url":"git@github.com:muffinresearch/olympia.git","clone_url":"https://github.com/muffinresearch/olympia.git","svn_url":"https://github.com/muffinresearch/olympia","homepage":"https://addons.mozilla.org/","size":414426,"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":"mozilla:master","ref":"master","sha":"d194a0a2305fd85a6fdba7b8ae8558ccd3969690","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":16416867,"name":"olympia","full_name":"mozilla/olympia","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/olympia","description":"addons.mozilla.org, reloaded.","fork":false,"url":"https://api.github.com/repos/mozilla/olympia","forks_url":"https://api.github.com/repos/mozilla/olympia/forks","keys_url":"https://api.github.com/repos/mozilla/olympia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/olympia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/olympia/teams","hooks_url":"https://api.github.com/repos/mozilla/olympia/hooks","issue_events_url":"https://api.github.com/repos/mozilla/olympia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/olympia/events","assignees_url":"https://api.github.com/repos/mozilla/olympia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/olympia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/olympia/tags","blobs_url":"https://api.github.com/repos/mozilla/olympia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/olympia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/olympia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/olympia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/olympia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/olympia/languages","stargazers_url":"https://api.github.com/repos/mozilla/olympia/stargazers","contributors_url":"https://api.github.com/repos/mozilla/olympia/contributors","subscribers_url":"https://api.github.com/repos/mozilla/olympia/subscribers","subscription_url":"https://api.github.com/repos/mozilla/olympia/subscription","commits_url":"https://api.github.com/repos/mozilla/olympia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/olympia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/olympia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/olympia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/olympia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/olympia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/olympia/merges","archive_url":"https://api.github.com/repos/mozilla/olympia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/olympia/downloads","issues_url":"https://api.github.com/repos/mozilla/olympia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/olympia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/olympia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/olympia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/olympia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/olympia/releases{/id}","created_at":"2014-01-31T18:44:15Z","updated_at":"2015-09-18T08:59:39Z","pushed_at":"2015-09-18T15:54:27Z","git_url":"git://github.com/mozilla/olympia.git","ssh_url":"git@github.com:mozilla/olympia.git","clone_url":"https://github.com/mozilla/olympia.git","svn_url":"https://github.com/mozilla/olympia","homepage":"https://addons.mozilla.org/","size":466351,"stargazers_count":54,"watchers_count":54,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"open_issues_count":16,"forks":106,"open_issues":16,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/olympia/pulls/762"},"html":{"href":"https://github.com/mozilla/olympia/pull/762"},"issue":{"href":"https://api.github.com/repos/mozilla/olympia/issues/762"},"comments":{"href":"https://api.github.com/repos/mozilla/olympia/issues/762/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/olympia/pulls/762/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/olympia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/olympia/pulls/762/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/olympia/statuses/b9187e126a976a9c54ba66137a95ac896e398bec"}}}}