{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/57838616","id":57838616,"diff_hunk":"@@ -130,5 +131,9 @@ def log_to_stdout\n           Rails.logger.extend(ActiveSupport::Logger.broadcast(console))\n         end\n       end\n+\n+      def restart_command\n+        \"bin/rails s #{ARGV.join(' ')}\"","path":"railties/lib/rails/commands/server.rb","position":null,"original_position":16,"commit_id":"8cc72db3a09c0b99cf567f202adb40ed9d2f4f10","original_commit_id":"5f6f4af5642ca1e32cc12194c039b7d2bf4c8b80","user":{"login":"prathamesh-sonpatki","id":621238,"avatar_url":"https://avatars.githubusercontent.com/u/621238?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh-sonpatki","html_url":"https://github.com/prathamesh-sonpatki","followers_url":"https://api.github.com/users/prathamesh-sonpatki/followers","following_url":"https://api.github.com/users/prathamesh-sonpatki/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh-sonpatki/subscriptions","organizations_url":"https://api.github.com/users/prathamesh-sonpatki/orgs","repos_url":"https://api.github.com/users/prathamesh-sonpatki/repos","events_url":"https://api.github.com/users/prathamesh-sonpatki/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh-sonpatki/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-03-30T05:31:20Z","updated_at":"2016-03-30T05:31:20Z","html_url":"https://github.com/rails/rails/pull/24331#discussion_r57838616","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/24331","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/57838616"},"html":{"href":"https://github.com/rails/rails/pull/24331#discussion_r57838616"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/24331"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/24331","id":64240041,"html_url":"https://github.com/rails/rails/pull/24331","diff_url":"https://github.com/rails/rails/pull/24331.diff","patch_url":"https://github.com/rails/rails/pull/24331.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/24331","number":24331,"state":"open","locked":false,"title":"Fix rails restart issue with Puma","user":{"login":"prathamesh-sonpatki","id":621238,"avatar_url":"https://avatars.githubusercontent.com/u/621238?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh-sonpatki","html_url":"https://github.com/prathamesh-sonpatki","followers_url":"https://api.github.com/users/prathamesh-sonpatki/followers","following_url":"https://api.github.com/users/prathamesh-sonpatki/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh-sonpatki/subscriptions","organizations_url":"https://api.github.com/users/prathamesh-sonpatki/orgs","repos_url":"https://api.github.com/users/prathamesh-sonpatki/repos","events_url":"https://api.github.com/users/prathamesh-sonpatki/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh-sonpatki/received_events","type":"User","site_admin":false},"body":"- We need to pass the restart command to Puma so that it will use it\r\n  while restarting the server.\r\n- Besides that we need to remove the pid file for the previous running\r\n  server because otherwise Rack complains about it's presence.\r\n- This also requires some changes on Puma side which are being tracked\r\n  here - https://github.com/puma/puma/pull/936.\r\n- Fixes #23910.\r\n\r\nr? @rafaelfranca cc @evanphx","created_at":"2016-03-26T15:01:06Z","updated_at":"2016-03-30T05:31:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08331a84ec44735602cfb49da33a08e1a2fe03ea","assignee":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rails/rails/milestones/47","html_url":"https://github.com/rails/rails/milestones/5.0.0","labels_url":"https://api.github.com/repos/rails/rails/milestones/47/labels","id":1467326,"number":47,"title":"5.0.0","description":"","creator":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":413,"state":"open","created_at":"2015-12-18T21:17:59Z","updated_at":"2016-03-30T03:35:42Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/rails/rails/pulls/24331/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/24331/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/24331/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/8cc72db3a09c0b99cf567f202adb40ed9d2f4f10","head":{"label":"prathamesh-sonpatki:fix-puma-restart","ref":"fix-puma-restart","sha":"8cc72db3a09c0b99cf567f202adb40ed9d2f4f10","user":{"login":"prathamesh-sonpatki","id":621238,"avatar_url":"https://avatars.githubusercontent.com/u/621238?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh-sonpatki","html_url":"https://github.com/prathamesh-sonpatki","followers_url":"https://api.github.com/users/prathamesh-sonpatki/followers","following_url":"https://api.github.com/users/prathamesh-sonpatki/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh-sonpatki/subscriptions","organizations_url":"https://api.github.com/users/prathamesh-sonpatki/orgs","repos_url":"https://api.github.com/users/prathamesh-sonpatki/repos","events_url":"https://api.github.com/users/prathamesh-sonpatki/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh-sonpatki/received_events","type":"User","site_admin":false},"repo":{"id":5762217,"name":"rails","full_name":"prathamesh-sonpatki/rails","owner":{"login":"prathamesh-sonpatki","id":621238,"avatar_url":"https://avatars.githubusercontent.com/u/621238?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh-sonpatki","html_url":"https://github.com/prathamesh-sonpatki","followers_url":"https://api.github.com/users/prathamesh-sonpatki/followers","following_url":"https://api.github.com/users/prathamesh-sonpatki/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh-sonpatki/subscriptions","organizations_url":"https://api.github.com/users/prathamesh-sonpatki/orgs","repos_url":"https://api.github.com/users/prathamesh-sonpatki/repos","events_url":"https://api.github.com/users/prathamesh-sonpatki/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh-sonpatki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prathamesh-sonpatki/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/prathamesh-sonpatki/rails","forks_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/forks","keys_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/teams","hooks_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/hooks","issue_events_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/issues/events{/number}","events_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/events","assignees_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/assignees{/user}","branches_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/branches{/branch}","tags_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/tags","blobs_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/languages","stargazers_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/stargazers","contributors_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/contributors","subscribers_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/subscribers","subscription_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/subscription","commits_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/contents/{+path}","compare_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/merges","archive_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/downloads","issues_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/issues{/number}","pulls_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/labels{/name}","releases_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/releases{/id}","deployments_url":"https://api.github.com/repos/prathamesh-sonpatki/rails/deployments","created_at":"2012-09-11T08:43:31Z","updated_at":"2015-07-07T02:34:42Z","pushed_at":"2016-03-30T05:30:28Z","git_url":"git://github.com/prathamesh-sonpatki/rails.git","ssh_url":"git@github.com:prathamesh-sonpatki/rails.git","clone_url":"https://github.com/prathamesh-sonpatki/rails.git","svn_url":"https://github.com/prathamesh-sonpatki/rails","homepage":"http://rubyonrails.org","size":116919,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"afba03f79c9e3e88fbb9e38dbb905546f16f0d9e","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-03-30T05:04:15Z","pushed_at":"2016-03-30T05:30:33Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":331759,"stargazers_count":30390,"watchers_count":30390,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12327,"mirror_url":null,"open_issues_count":917,"forks":12327,"open_issues":917,"watchers":30390,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/24331"},"html":{"href":"https://github.com/rails/rails/pull/24331"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/24331"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/24331/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/24331/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/24331/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/8cc72db3a09c0b99cf567f202adb40ed9d2f4f10"}}}}