{"action":"created","comment":{"url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/comments/172313568","pull_request_review_id":101300283,"id":172313568,"diff_hunk":"@@ -0,0 +1,47 @@\n+const express = require('express');\n+const app = express();\n+const http = require('http');\n+const bodyParser = require('body-parser');\n+const minifyHTML = require('express-minify-html');\n+const compression = require('compression');\n+require('dotenv').config();\n+\n+app.use(express.static('page', { maxAge: 3.154e+10 })); // 1year\n+app.set('views', 'page/views');\n+app.set('view engine', 'ejs');\n+\n+app.use(bodyParser.urlencoded({ extended: false }));\n+app.use(bodyParser.json());\n+\n+app.use(minifyHTML({\n+    override: false,\n+    htmlMinifier: {\n+        removeComments: true,\n+        collapseWhitespace: true,\n+        collapseBooleanAttributes: true,\n+        removeAttributeQuotes: true,\n+        removeEmptyAttributes: true,\n+        minifyJS: true\n+    }\n+}));\n+\n+app.use(compression({ level: 9 }));\n+\n+app.use('/', require('./routes').router);\n+\n+app.use(function (err, req, res) {\n+    res.status(500).send('Something broke!');\n+});\n+\n+app.use(function (req, res) {\n+    res.status(404).send('This isnt the page your looking for!');\n+});\n+\n+http.createServer(app).listen(process.env.PORT || 8080, function () {\n+    process.stdout.write('Secure Server listening on port ' + 8080","path":"server/server.js","position":41,"original_position":41,"commit_id":"b062fbd054bb9a86677330346f4659e6f509b9f8","original_commit_id":"b062fbd054bb9a86677330346f4659e6f509b9f8","user":{"login":"TashDubrovska","id":10604121,"avatar_url":"https://avatars1.githubusercontent.com/u/10604121?v=4","gravatar_id":"","url":"https://api.github.com/users/TashDubrovska","html_url":"https://github.com/TashDubrovska","followers_url":"https://api.github.com/users/TashDubrovska/followers","following_url":"https://api.github.com/users/TashDubrovska/following{/other_user}","gists_url":"https://api.github.com/users/TashDubrovska/gists{/gist_id}","starred_url":"https://api.github.com/users/TashDubrovska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TashDubrovska/subscriptions","organizations_url":"https://api.github.com/users/TashDubrovska/orgs","repos_url":"https://api.github.com/users/TashDubrovska/repos","events_url":"https://api.github.com/users/TashDubrovska/events{/privacy}","received_events_url":"https://api.github.com/users/TashDubrovska/received_events","type":"User","site_admin":false},"body":"If `PORT` is specified on the `process.env` this message will be incorrect. Also do you need to pay attention to `process.env.PORT`? Bluemix had an issue with wanting to dynamically set port when getting container up and running. Not sure the same is true for Azure.","created_at":"2018-03-05T20:10:02Z","updated_at":"2018-03-05T20:19:11Z","html_url":"https://github.com/john681611/INF_LandingPage/pull/12#discussion_r172313568","pull_request_url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/comments/172313568"},"html":{"href":"https://github.com/john681611/INF_LandingPage/pull/12#discussion_r172313568"},"pull_request":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12","id":172509154,"html_url":"https://github.com/john681611/INF_LandingPage/pull/12","diff_url":"https://github.com/john681611/INF_LandingPage/pull/12.diff","patch_url":"https://github.com/john681611/INF_LandingPage/pull/12.patch","issue_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues/12","number":12,"state":"open","locked":false,"title":"Breakup of server file ","user":{"login":"john681611","id":10814889,"avatar_url":"https://avatars1.githubusercontent.com/u/10814889?v=4","gravatar_id":"","url":"https://api.github.com/users/john681611","html_url":"https://github.com/john681611","followers_url":"https://api.github.com/users/john681611/followers","following_url":"https://api.github.com/users/john681611/following{/other_user}","gists_url":"https://api.github.com/users/john681611/gists{/gist_id}","starred_url":"https://api.github.com/users/john681611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john681611/subscriptions","organizations_url":"https://api.github.com/users/john681611/orgs","repos_url":"https://api.github.com/users/john681611/repos","events_url":"https://api.github.com/users/john681611/events{/privacy}","received_events_url":"https://api.github.com/users/john681611/received_events","type":"User","site_admin":false},"body":"Cleaning up the server file and improving tests along with some other shit.","created_at":"2018-03-02T13:58:34Z","updated_at":"2018-03-05T20:19:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18d37fa07cfc6906426fdc6346c3f8236c2cf5cc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12/commits","review_comments_url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12/comments","review_comment_url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues/12/comments","statuses_url":"https://api.github.com/repos/john681611/INF_LandingPage/statuses/b062fbd054bb9a86677330346f4659e6f509b9f8","head":{"label":"john681611:breakup","ref":"breakup","sha":"b062fbd054bb9a86677330346f4659e6f509b9f8","user":{"login":"john681611","id":10814889,"avatar_url":"https://avatars1.githubusercontent.com/u/10814889?v=4","gravatar_id":"","url":"https://api.github.com/users/john681611","html_url":"https://github.com/john681611","followers_url":"https://api.github.com/users/john681611/followers","following_url":"https://api.github.com/users/john681611/following{/other_user}","gists_url":"https://api.github.com/users/john681611/gists{/gist_id}","starred_url":"https://api.github.com/users/john681611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john681611/subscriptions","organizations_url":"https://api.github.com/users/john681611/orgs","repos_url":"https://api.github.com/users/john681611/repos","events_url":"https://api.github.com/users/john681611/events{/privacy}","received_events_url":"https://api.github.com/users/john681611/received_events","type":"User","site_admin":false},"repo":{"id":88428605,"name":"INF_LandingPage","full_name":"john681611/INF_LandingPage","owner":{"login":"john681611","id":10814889,"avatar_url":"https://avatars1.githubusercontent.com/u/10814889?v=4","gravatar_id":"","url":"https://api.github.com/users/john681611","html_url":"https://github.com/john681611","followers_url":"https://api.github.com/users/john681611/followers","following_url":"https://api.github.com/users/john681611/following{/other_user}","gists_url":"https://api.github.com/users/john681611/gists{/gist_id}","starred_url":"https://api.github.com/users/john681611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john681611/subscriptions","organizations_url":"https://api.github.com/users/john681611/orgs","repos_url":"https://api.github.com/users/john681611/repos","events_url":"https://api.github.com/users/john681611/events{/privacy}","received_events_url":"https://api.github.com/users/john681611/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/john681611/INF_LandingPage","description":"A new front page site for the Iron Fists Clan","fork":false,"url":"https://api.github.com/repos/john681611/INF_LandingPage","forks_url":"https://api.github.com/repos/john681611/INF_LandingPage/forks","keys_url":"https://api.github.com/repos/john681611/INF_LandingPage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/john681611/INF_LandingPage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/john681611/INF_LandingPage/teams","hooks_url":"https://api.github.com/repos/john681611/INF_LandingPage/hooks","issue_events_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues/events{/number}","events_url":"https://api.github.com/repos/john681611/INF_LandingPage/events","assignees_url":"https://api.github.com/repos/john681611/INF_LandingPage/assignees{/user}","branches_url":"https://api.github.com/repos/john681611/INF_LandingPage/branches{/branch}","tags_url":"https://api.github.com/repos/john681611/INF_LandingPage/tags","blobs_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/refs{/sha}","trees_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/john681611/INF_LandingPage/statuses/{sha}","languages_url":"https://api.github.com/repos/john681611/INF_LandingPage/languages","stargazers_url":"https://api.github.com/repos/john681611/INF_LandingPage/stargazers","contributors_url":"https://api.github.com/repos/john681611/INF_LandingPage/contributors","subscribers_url":"https://api.github.com/repos/john681611/INF_LandingPage/subscribers","subscription_url":"https://api.github.com/repos/john681611/INF_LandingPage/subscription","commits_url":"https://api.github.com/repos/john681611/INF_LandingPage/commits{/sha}","git_commits_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/commits{/sha}","comments_url":"https://api.github.com/repos/john681611/INF_LandingPage/comments{/number}","issue_comment_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues/comments{/number}","contents_url":"https://api.github.com/repos/john681611/INF_LandingPage/contents/{+path}","compare_url":"https://api.github.com/repos/john681611/INF_LandingPage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/john681611/INF_LandingPage/merges","archive_url":"https://api.github.com/repos/john681611/INF_LandingPage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/john681611/INF_LandingPage/downloads","issues_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues{/number}","pulls_url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls{/number}","milestones_url":"https://api.github.com/repos/john681611/INF_LandingPage/milestones{/number}","notifications_url":"https://api.github.com/repos/john681611/INF_LandingPage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/john681611/INF_LandingPage/labels{/name}","releases_url":"https://api.github.com/repos/john681611/INF_LandingPage/releases{/id}","deployments_url":"https://api.github.com/repos/john681611/INF_LandingPage/deployments","created_at":"2017-04-16T16:44:51Z","updated_at":"2017-07-11T22:32:29Z","pushed_at":"2018-03-03T01:23:15Z","git_url":"git://github.com/john681611/INF_LandingPage.git","ssh_url":"git@github.com:john681611/INF_LandingPage.git","clone_url":"https://github.com/john681611/INF_LandingPage.git","svn_url":"https://github.com/john681611/INF_LandingPage","homepage":"http://ironfists.azurewebsites.net/","size":35939,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"john681611:master","ref":"master","sha":"97d56ebfd8ad7d47453be5bb8ec80490bc3f6222","user":{"login":"john681611","id":10814889,"avatar_url":"https://avatars1.githubusercontent.com/u/10814889?v=4","gravatar_id":"","url":"https://api.github.com/users/john681611","html_url":"https://github.com/john681611","followers_url":"https://api.github.com/users/john681611/followers","following_url":"https://api.github.com/users/john681611/following{/other_user}","gists_url":"https://api.github.com/users/john681611/gists{/gist_id}","starred_url":"https://api.github.com/users/john681611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john681611/subscriptions","organizations_url":"https://api.github.com/users/john681611/orgs","repos_url":"https://api.github.com/users/john681611/repos","events_url":"https://api.github.com/users/john681611/events{/privacy}","received_events_url":"https://api.github.com/users/john681611/received_events","type":"User","site_admin":false},"repo":{"id":88428605,"name":"INF_LandingPage","full_name":"john681611/INF_LandingPage","owner":{"login":"john681611","id":10814889,"avatar_url":"https://avatars1.githubusercontent.com/u/10814889?v=4","gravatar_id":"","url":"https://api.github.com/users/john681611","html_url":"https://github.com/john681611","followers_url":"https://api.github.com/users/john681611/followers","following_url":"https://api.github.com/users/john681611/following{/other_user}","gists_url":"https://api.github.com/users/john681611/gists{/gist_id}","starred_url":"https://api.github.com/users/john681611/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john681611/subscriptions","organizations_url":"https://api.github.com/users/john681611/orgs","repos_url":"https://api.github.com/users/john681611/repos","events_url":"https://api.github.com/users/john681611/events{/privacy}","received_events_url":"https://api.github.com/users/john681611/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/john681611/INF_LandingPage","description":"A new front page site for the Iron Fists Clan","fork":false,"url":"https://api.github.com/repos/john681611/INF_LandingPage","forks_url":"https://api.github.com/repos/john681611/INF_LandingPage/forks","keys_url":"https://api.github.com/repos/john681611/INF_LandingPage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/john681611/INF_LandingPage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/john681611/INF_LandingPage/teams","hooks_url":"https://api.github.com/repos/john681611/INF_LandingPage/hooks","issue_events_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues/events{/number}","events_url":"https://api.github.com/repos/john681611/INF_LandingPage/events","assignees_url":"https://api.github.com/repos/john681611/INF_LandingPage/assignees{/user}","branches_url":"https://api.github.com/repos/john681611/INF_LandingPage/branches{/branch}","tags_url":"https://api.github.com/repos/john681611/INF_LandingPage/tags","blobs_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/refs{/sha}","trees_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/john681611/INF_LandingPage/statuses/{sha}","languages_url":"https://api.github.com/repos/john681611/INF_LandingPage/languages","stargazers_url":"https://api.github.com/repos/john681611/INF_LandingPage/stargazers","contributors_url":"https://api.github.com/repos/john681611/INF_LandingPage/contributors","subscribers_url":"https://api.github.com/repos/john681611/INF_LandingPage/subscribers","subscription_url":"https://api.github.com/repos/john681611/INF_LandingPage/subscription","commits_url":"https://api.github.com/repos/john681611/INF_LandingPage/commits{/sha}","git_commits_url":"https://api.github.com/repos/john681611/INF_LandingPage/git/commits{/sha}","comments_url":"https://api.github.com/repos/john681611/INF_LandingPage/comments{/number}","issue_comment_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues/comments{/number}","contents_url":"https://api.github.com/repos/john681611/INF_LandingPage/contents/{+path}","compare_url":"https://api.github.com/repos/john681611/INF_LandingPage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/john681611/INF_LandingPage/merges","archive_url":"https://api.github.com/repos/john681611/INF_LandingPage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/john681611/INF_LandingPage/downloads","issues_url":"https://api.github.com/repos/john681611/INF_LandingPage/issues{/number}","pulls_url":"https://api.github.com/repos/john681611/INF_LandingPage/pulls{/number}","milestones_url":"https://api.github.com/repos/john681611/INF_LandingPage/milestones{/number}","notifications_url":"https://api.github.com/repos/john681611/INF_LandingPage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/john681611/INF_LandingPage/labels{/name}","releases_url":"https://api.github.com/repos/john681611/INF_LandingPage/releases{/id}","deployments_url":"https://api.github.com/repos/john681611/INF_LandingPage/deployments","created_at":"2017-04-16T16:44:51Z","updated_at":"2017-07-11T22:32:29Z","pushed_at":"2018-03-03T01:23:15Z","git_url":"git://github.com/john681611/INF_LandingPage.git","ssh_url":"git@github.com:john681611/INF_LandingPage.git","clone_url":"https://github.com/john681611/INF_LandingPage.git","svn_url":"https://github.com/john681611/INF_LandingPage","homepage":"http://ironfists.azurewebsites.net/","size":35939,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12"},"html":{"href":"https://github.com/john681611/INF_LandingPage/pull/12"},"issue":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/issues/12"},"comments":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/john681611/INF_LandingPage/statuses/b062fbd054bb9a86677330346f4659e6f509b9f8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"TashDubrovska"}}