{"action":"created","comment":{"url":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/comments/24764042","id":24764042,"diff_hunk":"@@ -12,7 +12,11 @@ var mongoose = require('mongoose');\n var config = require('./server/config/environment');\n var https = require('https');\n var fs = require('fs');\n-var credentials = {key: fs.readFileSync('./shared/config/ssl.key', 'utf-8'), cert: fs.readFileSync('./shared/config/ssl.crt', 'utf-8')};\n+console.log(process.env.NODE_ENV);\n+var credentials = {\n+\t\t\tkey: process.env.NODE_ENV === 'production' ? fs.readFileSync('../shared/config/ssl.key', 'utf-8') : fs.readFileSync('./shared/config/ssl.key', 'utf-8'),\n+\t\t\tcert: process.env.NODE_ENV === 'production' ? fs.readFileSync('../shared/config/ssl.crt', 'utf-8') : fs.readFileSync('./shared/config/ssl.crt', 'utf-8')","path":"server.js","position":8,"original_position":8,"commit_id":"6a68550919826c4c7630cf1b6f68dff7d85bcfbc","original_commit_id":"6a68550919826c4c7630cf1b6f68dff7d85bcfbc","user":{"login":"kxprim","id":8763439,"avatar_url":"https://avatars.githubusercontent.com/u/8763439?v=3","gravatar_id":"","url":"https://api.github.com/users/kxprim","html_url":"https://github.com/kxprim","followers_url":"https://api.github.com/users/kxprim/followers","following_url":"https://api.github.com/users/kxprim/following{/other_user}","gists_url":"https://api.github.com/users/kxprim/gists{/gist_id}","starred_url":"https://api.github.com/users/kxprim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxprim/subscriptions","organizations_url":"https://api.github.com/users/kxprim/orgs","repos_url":"https://api.github.com/users/kxprim/repos","events_url":"https://api.github.com/users/kxprim/events{/privacy}","received_events_url":"https://api.github.com/users/kxprim/received_events","type":"User","site_admin":false},"body":"Indentation to fix","created_at":"2015-02-16T17:20:21Z","updated_at":"2015-02-16T17:20:21Z","html_url":"https://github.com/StrangeLightning/strangeLightning/pull/71#discussion_r24764042","pull_request_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/comments/24764042"},"html":{"href":"https://github.com/StrangeLightning/strangeLightning/pull/71#discussion_r24764042"},"pull_request":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71","id":29388445,"html_url":"https://github.com/StrangeLightning/strangeLightning/pull/71","diff_url":"https://github.com/StrangeLightning/strangeLightning/pull/71.diff","patch_url":"https://github.com/StrangeLightning/strangeLightning/pull/71.patch","issue_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/issues/71","number":71,"state":"open","locked":false,"title":"Use https in production","user":{"login":"peerwit","id":9061923,"avatar_url":"https://avatars.githubusercontent.com/u/9061923?v=3","gravatar_id":"","url":"https://api.github.com/users/peerwit","html_url":"https://github.com/peerwit","followers_url":"https://api.github.com/users/peerwit/followers","following_url":"https://api.github.com/users/peerwit/following{/other_user}","gists_url":"https://api.github.com/users/peerwit/gists{/gist_id}","starred_url":"https://api.github.com/users/peerwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peerwit/subscriptions","organizations_url":"https://api.github.com/users/peerwit/orgs","repos_url":"https://api.github.com/users/peerwit/repos","events_url":"https://api.github.com/users/peerwit/events{/privacy}","received_events_url":"https://api.github.com/users/peerwit/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-16T17:16:14Z","updated_at":"2015-02-16T17:20:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08b226a4a6270c6c15d732d0ff194463969a7154","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71/commits","review_comments_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71/comments","review_comment_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/comments/{number}","comments_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/issues/71/comments","statuses_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/statuses/6a68550919826c4c7630cf1b6f68dff7d85bcfbc","head":{"label":"peerwit:master","ref":"master","sha":"6a68550919826c4c7630cf1b6f68dff7d85bcfbc","user":{"login":"peerwit","id":9061923,"avatar_url":"https://avatars.githubusercontent.com/u/9061923?v=3","gravatar_id":"","url":"https://api.github.com/users/peerwit","html_url":"https://github.com/peerwit","followers_url":"https://api.github.com/users/peerwit/followers","following_url":"https://api.github.com/users/peerwit/following{/other_user}","gists_url":"https://api.github.com/users/peerwit/gists{/gist_id}","starred_url":"https://api.github.com/users/peerwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peerwit/subscriptions","organizations_url":"https://api.github.com/users/peerwit/orgs","repos_url":"https://api.github.com/users/peerwit/repos","events_url":"https://api.github.com/users/peerwit/events{/privacy}","received_events_url":"https://api.github.com/users/peerwit/received_events","type":"User","site_admin":false},"repo":{"id":30676480,"name":"strangeLightning","full_name":"peerwit/strangeLightning","owner":{"login":"peerwit","id":9061923,"avatar_url":"https://avatars.githubusercontent.com/u/9061923?v=3","gravatar_id":"","url":"https://api.github.com/users/peerwit","html_url":"https://github.com/peerwit","followers_url":"https://api.github.com/users/peerwit/followers","following_url":"https://api.github.com/users/peerwit/following{/other_user}","gists_url":"https://api.github.com/users/peerwit/gists{/gist_id}","starred_url":"https://api.github.com/users/peerwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peerwit/subscriptions","organizations_url":"https://api.github.com/users/peerwit/orgs","repos_url":"https://api.github.com/users/peerwit/repos","events_url":"https://api.github.com/users/peerwit/events{/privacy}","received_events_url":"https://api.github.com/users/peerwit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peerwit/strangeLightning","description":"","fork":true,"url":"https://api.github.com/repos/peerwit/strangeLightning","forks_url":"https://api.github.com/repos/peerwit/strangeLightning/forks","keys_url":"https://api.github.com/repos/peerwit/strangeLightning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peerwit/strangeLightning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peerwit/strangeLightning/teams","hooks_url":"https://api.github.com/repos/peerwit/strangeLightning/hooks","issue_events_url":"https://api.github.com/repos/peerwit/strangeLightning/issues/events{/number}","events_url":"https://api.github.com/repos/peerwit/strangeLightning/events","assignees_url":"https://api.github.com/repos/peerwit/strangeLightning/assignees{/user}","branches_url":"https://api.github.com/repos/peerwit/strangeLightning/branches{/branch}","tags_url":"https://api.github.com/repos/peerwit/strangeLightning/tags","blobs_url":"https://api.github.com/repos/peerwit/strangeLightning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peerwit/strangeLightning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peerwit/strangeLightning/git/refs{/sha}","trees_url":"https://api.github.com/repos/peerwit/strangeLightning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peerwit/strangeLightning/statuses/{sha}","languages_url":"https://api.github.com/repos/peerwit/strangeLightning/languages","stargazers_url":"https://api.github.com/repos/peerwit/strangeLightning/stargazers","contributors_url":"https://api.github.com/repos/peerwit/strangeLightning/contributors","subscribers_url":"https://api.github.com/repos/peerwit/strangeLightning/subscribers","subscription_url":"https://api.github.com/repos/peerwit/strangeLightning/subscription","commits_url":"https://api.github.com/repos/peerwit/strangeLightning/commits{/sha}","git_commits_url":"https://api.github.com/repos/peerwit/strangeLightning/git/commits{/sha}","comments_url":"https://api.github.com/repos/peerwit/strangeLightning/comments{/number}","issue_comment_url":"https://api.github.com/repos/peerwit/strangeLightning/issues/comments/{number}","contents_url":"https://api.github.com/repos/peerwit/strangeLightning/contents/{+path}","compare_url":"https://api.github.com/repos/peerwit/strangeLightning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peerwit/strangeLightning/merges","archive_url":"https://api.github.com/repos/peerwit/strangeLightning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peerwit/strangeLightning/downloads","issues_url":"https://api.github.com/repos/peerwit/strangeLightning/issues{/number}","pulls_url":"https://api.github.com/repos/peerwit/strangeLightning/pulls{/number}","milestones_url":"https://api.github.com/repos/peerwit/strangeLightning/milestones{/number}","notifications_url":"https://api.github.com/repos/peerwit/strangeLightning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peerwit/strangeLightning/labels{/name}","releases_url":"https://api.github.com/repos/peerwit/strangeLightning/releases{/id}","created_at":"2015-02-12T00:01:01Z","updated_at":"2015-02-16T17:03:49Z","pushed_at":"2015-02-16T17:03:49Z","git_url":"git://github.com/peerwit/strangeLightning.git","ssh_url":"git@github.com:peerwit/strangeLightning.git","clone_url":"https://github.com/peerwit/strangeLightning.git","svn_url":"https://github.com/peerwit/strangeLightning","homepage":null,"size":44377,"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":"master"}},"base":{"label":"StrangeLightning:production","ref":"production","sha":"9a722a63434575572ae3891d984d91685b9762dd","user":{"login":"StrangeLightning","id":10945888,"avatar_url":"https://avatars.githubusercontent.com/u/10945888?v=3","gravatar_id":"","url":"https://api.github.com/users/StrangeLightning","html_url":"https://github.com/StrangeLightning","followers_url":"https://api.github.com/users/StrangeLightning/followers","following_url":"https://api.github.com/users/StrangeLightning/following{/other_user}","gists_url":"https://api.github.com/users/StrangeLightning/gists{/gist_id}","starred_url":"https://api.github.com/users/StrangeLightning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrangeLightning/subscriptions","organizations_url":"https://api.github.com/users/StrangeLightning/orgs","repos_url":"https://api.github.com/users/StrangeLightning/repos","events_url":"https://api.github.com/users/StrangeLightning/events{/privacy}","received_events_url":"https://api.github.com/users/StrangeLightning/received_events","type":"Organization","site_admin":false},"repo":{"id":30634216,"name":"strangeLightning","full_name":"StrangeLightning/strangeLightning","owner":{"login":"StrangeLightning","id":10945888,"avatar_url":"https://avatars.githubusercontent.com/u/10945888?v=3","gravatar_id":"","url":"https://api.github.com/users/StrangeLightning","html_url":"https://github.com/StrangeLightning","followers_url":"https://api.github.com/users/StrangeLightning/followers","following_url":"https://api.github.com/users/StrangeLightning/following{/other_user}","gists_url":"https://api.github.com/users/StrangeLightning/gists{/gist_id}","starred_url":"https://api.github.com/users/StrangeLightning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrangeLightning/subscriptions","organizations_url":"https://api.github.com/users/StrangeLightning/orgs","repos_url":"https://api.github.com/users/StrangeLightning/repos","events_url":"https://api.github.com/users/StrangeLightning/events{/privacy}","received_events_url":"https://api.github.com/users/StrangeLightning/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StrangeLightning/strangeLightning","description":"","fork":false,"url":"https://api.github.com/repos/StrangeLightning/strangeLightning","forks_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/forks","keys_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/teams","hooks_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/hooks","issue_events_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/issues/events{/number}","events_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/events","assignees_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/assignees{/user}","branches_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/branches{/branch}","tags_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/tags","blobs_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/git/refs{/sha}","trees_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/statuses/{sha}","languages_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/languages","stargazers_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/stargazers","contributors_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/contributors","subscribers_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/subscribers","subscription_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/subscription","commits_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/commits{/sha}","git_commits_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/git/commits{/sha}","comments_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/comments{/number}","issue_comment_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/issues/comments/{number}","contents_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/contents/{+path}","compare_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/merges","archive_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/downloads","issues_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/issues{/number}","pulls_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls{/number}","milestones_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/milestones{/number}","notifications_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/labels{/name}","releases_url":"https://api.github.com/repos/StrangeLightning/strangeLightning/releases{/id}","created_at":"2015-02-11T06:34:11Z","updated_at":"2015-02-16T17:19:25Z","pushed_at":"2015-02-16T17:19:25Z","git_url":"git://github.com/StrangeLightning/strangeLightning.git","ssh_url":"git@github.com:StrangeLightning/strangeLightning.git","clone_url":"https://github.com/StrangeLightning/strangeLightning.git","svn_url":"https://github.com/StrangeLightning/strangeLightning","homepage":null,"size":45703,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71"},"html":{"href":"https://github.com/StrangeLightning/strangeLightning/pull/71"},"issue":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/issues/71"},"comments":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/StrangeLightning/strangeLightning/statuses/6a68550919826c4c7630cf1b6f68dff7d85bcfbc"}}}}