{"action":"created","comment":{"url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments/74439694","id":74439694,"diff_hunk":"@@ -122,6 +123,8 @@ module.exports = function (options) {\n             withBackendAuthentication: true,\n             healthChecks: []\n         },\n+        options = _.merge(defaults, argumentOptions),\n+        host = process.env.HOST || options.host,\n         port = process.env.PORT || options.port,\n         environment  = process.env.NODE_ENV || process.env.ENVIRONMENT || '',","path":"main.js","position":22,"original_position":22,"commit_id":"5d0e12e530ee1c51979a8e75e0c64f74235213cd","original_commit_id":"5d0e12e530ee1c51979a8e75e0c64f74235213cd","user":{"login":"MDrooker","id":6624513,"avatar_url":"https://avatars.githubusercontent.com/u/6624513?v=3","gravatar_id":"","url":"https://api.github.com/users/MDrooker","html_url":"https://github.com/MDrooker","followers_url":"https://api.github.com/users/MDrooker/followers","following_url":"https://api.github.com/users/MDrooker/following{/other_user}","gists_url":"https://api.github.com/users/MDrooker/gists{/gist_id}","starred_url":"https://api.github.com/users/MDrooker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDrooker/subscriptions","organizations_url":"https://api.github.com/users/MDrooker/orgs","repos_url":"https://api.github.com/users/MDrooker/repos","events_url":"https://api.github.com/users/MDrooker/events{/privacy}","received_events_url":"https://api.github.com/users/MDrooker/received_events","type":"User","site_admin":false},"body":"Why wouldnt this come from the app's passed in options?","created_at":"2016-08-11T15:05:42Z","updated_at":"2016-08-11T15:05:42Z","html_url":"https://github.com/cnnlabs/cnn-hapi/pull/31#discussion_r74439694","pull_request_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments/74439694"},"html":{"href":"https://github.com/cnnlabs/cnn-hapi/pull/31#discussion_r74439694"},"pull_request":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31","id":80971176,"html_url":"https://github.com/cnnlabs/cnn-hapi/pull/31","diff_url":"https://github.com/cnnlabs/cnn-hapi/pull/31.diff","patch_url":"https://github.com/cnnlabs/cnn-hapi/pull/31.patch","issue_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/31","number":31,"state":"open","locked":false,"title":"Added configuration support for host, port, and tls","user":{"login":"samsm-turner","id":8103654,"avatar_url":"https://avatars.githubusercontent.com/u/8103654?v=3","gravatar_id":"","url":"https://api.github.com/users/samsm-turner","html_url":"https://github.com/samsm-turner","followers_url":"https://api.github.com/users/samsm-turner/followers","following_url":"https://api.github.com/users/samsm-turner/following{/other_user}","gists_url":"https://api.github.com/users/samsm-turner/gists{/gist_id}","starred_url":"https://api.github.com/users/samsm-turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsm-turner/subscriptions","organizations_url":"https://api.github.com/users/samsm-turner/orgs","repos_url":"https://api.github.com/users/samsm-turner/repos","events_url":"https://api.github.com/users/samsm-turner/events{/privacy}","received_events_url":"https://api.github.com/users/samsm-turner/received_events","type":"User","site_admin":false},"body":"This:\r\n* reorders where defaults are merged into options, so the port default can be used\r\n* adds configuration options for host and tls.\r\n\r\n:)","created_at":"2016-08-11T14:50:15Z","updated_at":"2016-08-11T15:05:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a745612f28efba5cc00caae90ef9e2b12689119f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31/commits","review_comments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31/comments","review_comment_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/31/comments","statuses_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/statuses/5d0e12e530ee1c51979a8e75e0c64f74235213cd","head":{"label":"samsm-turner:feature/port-host-and-tls","ref":"feature/port-host-and-tls","sha":"5d0e12e530ee1c51979a8e75e0c64f74235213cd","user":{"login":"samsm-turner","id":8103654,"avatar_url":"https://avatars.githubusercontent.com/u/8103654?v=3","gravatar_id":"","url":"https://api.github.com/users/samsm-turner","html_url":"https://github.com/samsm-turner","followers_url":"https://api.github.com/users/samsm-turner/followers","following_url":"https://api.github.com/users/samsm-turner/following{/other_user}","gists_url":"https://api.github.com/users/samsm-turner/gists{/gist_id}","starred_url":"https://api.github.com/users/samsm-turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsm-turner/subscriptions","organizations_url":"https://api.github.com/users/samsm-turner/orgs","repos_url":"https://api.github.com/users/samsm-turner/repos","events_url":"https://api.github.com/users/samsm-turner/events{/privacy}","received_events_url":"https://api.github.com/users/samsm-turner/received_events","type":"User","site_admin":false},"repo":{"id":65411278,"name":"cnn-hapi","full_name":"samsm-turner/cnn-hapi","owner":{"login":"samsm-turner","id":8103654,"avatar_url":"https://avatars.githubusercontent.com/u/8103654?v=3","gravatar_id":"","url":"https://api.github.com/users/samsm-turner","html_url":"https://github.com/samsm-turner","followers_url":"https://api.github.com/users/samsm-turner/followers","following_url":"https://api.github.com/users/samsm-turner/following{/other_user}","gists_url":"https://api.github.com/users/samsm-turner/gists{/gist_id}","starred_url":"https://api.github.com/users/samsm-turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsm-turner/subscriptions","organizations_url":"https://api.github.com/users/samsm-turner/orgs","repos_url":"https://api.github.com/users/samsm-turner/repos","events_url":"https://api.github.com/users/samsm-turner/events{/privacy}","received_events_url":"https://api.github.com/users/samsm-turner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samsm-turner/cnn-hapi","description":"CNN Hapi","fork":true,"url":"https://api.github.com/repos/samsm-turner/cnn-hapi","forks_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/forks","keys_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/teams","hooks_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/hooks","issue_events_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/issues/events{/number}","events_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/events","assignees_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/assignees{/user}","branches_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/branches{/branch}","tags_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/tags","blobs_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/languages","stargazers_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/stargazers","contributors_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/contributors","subscribers_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/subscribers","subscription_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/subscription","commits_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/contents/{+path}","compare_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/merges","archive_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/downloads","issues_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/issues{/number}","pulls_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/labels{/name}","releases_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/releases{/id}","deployments_url":"https://api.github.com/repos/samsm-turner/cnn-hapi/deployments","created_at":"2016-08-10T19:40:54Z","updated_at":"2016-08-10T19:40:56Z","pushed_at":"2016-08-11T14:44:27Z","git_url":"git://github.com/samsm-turner/cnn-hapi.git","ssh_url":"git@github.com:samsm-turner/cnn-hapi.git","clone_url":"https://github.com/samsm-turner/cnn-hapi.git","svn_url":"https://github.com/samsm-turner/cnn-hapi","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"develop"}},"base":{"label":"cnnlabs:develop","ref":"develop","sha":"55b53e508f42773ef1936bb77eb282f8e022f771","user":{"login":"cnnlabs","id":16924554,"avatar_url":"https://avatars.githubusercontent.com/u/16924554?v=3","gravatar_id":"","url":"https://api.github.com/users/cnnlabs","html_url":"https://github.com/cnnlabs","followers_url":"https://api.github.com/users/cnnlabs/followers","following_url":"https://api.github.com/users/cnnlabs/following{/other_user}","gists_url":"https://api.github.com/users/cnnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/cnnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnnlabs/subscriptions","organizations_url":"https://api.github.com/users/cnnlabs/orgs","repos_url":"https://api.github.com/users/cnnlabs/repos","events_url":"https://api.github.com/users/cnnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/cnnlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":51035007,"name":"cnn-hapi","full_name":"cnnlabs/cnn-hapi","owner":{"login":"cnnlabs","id":16924554,"avatar_url":"https://avatars.githubusercontent.com/u/16924554?v=3","gravatar_id":"","url":"https://api.github.com/users/cnnlabs","html_url":"https://github.com/cnnlabs","followers_url":"https://api.github.com/users/cnnlabs/followers","following_url":"https://api.github.com/users/cnnlabs/following{/other_user}","gists_url":"https://api.github.com/users/cnnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/cnnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnnlabs/subscriptions","organizations_url":"https://api.github.com/users/cnnlabs/orgs","repos_url":"https://api.github.com/users/cnnlabs/repos","events_url":"https://api.github.com/users/cnnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/cnnlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cnnlabs/cnn-hapi","description":"CNN Hapi","fork":false,"url":"https://api.github.com/repos/cnnlabs/cnn-hapi","forks_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/forks","keys_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/teams","hooks_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/hooks","issue_events_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/events{/number}","events_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/events","assignees_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/assignees{/user}","branches_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/branches{/branch}","tags_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/tags","blobs_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/languages","stargazers_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/stargazers","contributors_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/contributors","subscribers_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/subscribers","subscription_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/subscription","commits_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/contents/{+path}","compare_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/merges","archive_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/downloads","issues_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues{/number}","pulls_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/labels{/name}","releases_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/releases{/id}","deployments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/deployments","created_at":"2016-02-03T22:23:42Z","updated_at":"2016-02-24T02:47:34Z","pushed_at":"2016-08-11T14:50:16Z","git_url":"git://github.com/cnnlabs/cnn-hapi.git","ssh_url":"git@github.com:cnnlabs/cnn-hapi.git","clone_url":"https://github.com/cnnlabs/cnn-hapi.git","svn_url":"https://github.com/cnnlabs/cnn-hapi","homepage":null,"size":85,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31"},"html":{"href":"https://github.com/cnnlabs/cnn-hapi/pull/31"},"issue":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/31"},"comments":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/statuses/5d0e12e530ee1c51979a8e75e0c64f74235213cd"}}}}
{"actor":{"display_login":"MDrooker"}}