{"action":"created","comment":{"url":"https://api.github.com/repos/deis/deis/pulls/comments/25555492","id":25555492,"diff_hunk":"@@ -113,12 +115,29 @@ func (s *Server) IsPublishableApp(name string) bool {\n \t\tlog.Println(err)\n \t\treturn false\n \t}\n-\tif version >= latestRunningVersion(s.EtcdClient, appName) {\n+\n+\tif version >= latestRunningVersion(s.EtcdClient, appName) && isPortOpen(hostAndPort) {","path":"publisher/server/publisher.go","position":null,"original_position":35,"commit_id":"297d91581a9a23b0b318ad275d8a455fe61df743","original_commit_id":"9acd7118da6a28b1fff3a7bacd00bec8a9f0a71a","user":{"login":"glogiotatidis","id":584352,"avatar_url":"https://avatars.githubusercontent.com/u/584352?v=3","gravatar_id":"","url":"https://api.github.com/users/glogiotatidis","html_url":"https://github.com/glogiotatidis","followers_url":"https://api.github.com/users/glogiotatidis/followers","following_url":"https://api.github.com/users/glogiotatidis/following{/other_user}","gists_url":"https://api.github.com/users/glogiotatidis/gists{/gist_id}","starred_url":"https://api.github.com/users/glogiotatidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glogiotatidis/subscriptions","organizations_url":"https://api.github.com/users/glogiotatidis/orgs","repos_url":"https://api.github.com/users/glogiotatidis/repos","events_url":"https://api.github.com/users/glogiotatidis/events{/privacy}","received_events_url":"https://api.github.com/users/glogiotatidis/received_events","type":"User","site_admin":false},"body":"Updated.","created_at":"2015-02-28T08:17:32Z","updated_at":"2015-02-28T08:17:32Z","html_url":"https://github.com/deis/deis/pull/3156#discussion_r25555492","pull_request_url":"https://api.github.com/repos/deis/deis/pulls/3156","_links":{"self":{"href":"https://api.github.com/repos/deis/deis/pulls/comments/25555492"},"html":{"href":"https://github.com/deis/deis/pull/3156#discussion_r25555492"},"pull_request":{"href":"https://api.github.com/repos/deis/deis/pulls/3156"}}},"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/3156","id":30156327,"html_url":"https://github.com/deis/deis/pull/3156","diff_url":"https://github.com/deis/deis/pull/3156.diff","patch_url":"https://github.com/deis/deis/pull/3156.patch","issue_url":"https://api.github.com/repos/deis/deis/issues/3156","number":3156,"state":"open","locked":false,"title":"feat(publisher): Check if app port is open before publishing it. Fixes 3115","user":{"login":"glogiotatidis","id":584352,"avatar_url":"https://avatars.githubusercontent.com/u/584352?v=3","gravatar_id":"","url":"https://api.github.com/users/glogiotatidis","html_url":"https://github.com/glogiotatidis","followers_url":"https://api.github.com/users/glogiotatidis/followers","following_url":"https://api.github.com/users/glogiotatidis/following{/other_user}","gists_url":"https://api.github.com/users/glogiotatidis/gists{/gist_id}","starred_url":"https://api.github.com/users/glogiotatidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glogiotatidis/subscriptions","organizations_url":"https://api.github.com/users/glogiotatidis/orgs","repos_url":"https://api.github.com/users/glogiotatidis/repos","events_url":"https://api.github.com/users/glogiotatidis/events{/privacy}","received_events_url":"https://api.github.com/users/glogiotatidis/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-27T10:40:30Z","updated_at":"2015-02-28T08:17:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20c786ec83cd688765e8de1cf6f5c2e60f593aa2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deis/deis/pulls/3156/commits","review_comments_url":"https://api.github.com/repos/deis/deis/pulls/3156/comments","review_comment_url":"https://api.github.com/repos/deis/deis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deis/deis/issues/3156/comments","statuses_url":"https://api.github.com/repos/deis/deis/statuses/297d91581a9a23b0b318ad275d8a455fe61df743","head":{"label":"glogiotatidis:3115","ref":"3115","sha":"297d91581a9a23b0b318ad275d8a455fe61df743","user":{"login":"glogiotatidis","id":584352,"avatar_url":"https://avatars.githubusercontent.com/u/584352?v=3","gravatar_id":"","url":"https://api.github.com/users/glogiotatidis","html_url":"https://github.com/glogiotatidis","followers_url":"https://api.github.com/users/glogiotatidis/followers","following_url":"https://api.github.com/users/glogiotatidis/following{/other_user}","gists_url":"https://api.github.com/users/glogiotatidis/gists{/gist_id}","starred_url":"https://api.github.com/users/glogiotatidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glogiotatidis/subscriptions","organizations_url":"https://api.github.com/users/glogiotatidis/orgs","repos_url":"https://api.github.com/users/glogiotatidis/repos","events_url":"https://api.github.com/users/glogiotatidis/events{/privacy}","received_events_url":"https://api.github.com/users/glogiotatidis/received_events","type":"User","site_admin":false},"repo":{"id":26817786,"name":"deis","full_name":"glogiotatidis/deis","owner":{"login":"glogiotatidis","id":584352,"avatar_url":"https://avatars.githubusercontent.com/u/584352?v=3","gravatar_id":"","url":"https://api.github.com/users/glogiotatidis","html_url":"https://github.com/glogiotatidis","followers_url":"https://api.github.com/users/glogiotatidis/followers","following_url":"https://api.github.com/users/glogiotatidis/following{/other_user}","gists_url":"https://api.github.com/users/glogiotatidis/gists{/gist_id}","starred_url":"https://api.github.com/users/glogiotatidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glogiotatidis/subscriptions","organizations_url":"https://api.github.com/users/glogiotatidis/orgs","repos_url":"https://api.github.com/users/glogiotatidis/repos","events_url":"https://api.github.com/users/glogiotatidis/events{/privacy}","received_events_url":"https://api.github.com/users/glogiotatidis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glogiotatidis/deis","description":"Your PaaS. Your Rules. ","fork":true,"url":"https://api.github.com/repos/glogiotatidis/deis","forks_url":"https://api.github.com/repos/glogiotatidis/deis/forks","keys_url":"https://api.github.com/repos/glogiotatidis/deis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glogiotatidis/deis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glogiotatidis/deis/teams","hooks_url":"https://api.github.com/repos/glogiotatidis/deis/hooks","issue_events_url":"https://api.github.com/repos/glogiotatidis/deis/issues/events{/number}","events_url":"https://api.github.com/repos/glogiotatidis/deis/events","assignees_url":"https://api.github.com/repos/glogiotatidis/deis/assignees{/user}","branches_url":"https://api.github.com/repos/glogiotatidis/deis/branches{/branch}","tags_url":"https://api.github.com/repos/glogiotatidis/deis/tags","blobs_url":"https://api.github.com/repos/glogiotatidis/deis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glogiotatidis/deis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glogiotatidis/deis/git/refs{/sha}","trees_url":"https://api.github.com/repos/glogiotatidis/deis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glogiotatidis/deis/statuses/{sha}","languages_url":"https://api.github.com/repos/glogiotatidis/deis/languages","stargazers_url":"https://api.github.com/repos/glogiotatidis/deis/stargazers","contributors_url":"https://api.github.com/repos/glogiotatidis/deis/contributors","subscribers_url":"https://api.github.com/repos/glogiotatidis/deis/subscribers","subscription_url":"https://api.github.com/repos/glogiotatidis/deis/subscription","commits_url":"https://api.github.com/repos/glogiotatidis/deis/commits{/sha}","git_commits_url":"https://api.github.com/repos/glogiotatidis/deis/git/commits{/sha}","comments_url":"https://api.github.com/repos/glogiotatidis/deis/comments{/number}","issue_comment_url":"https://api.github.com/repos/glogiotatidis/deis/issues/comments{/number}","contents_url":"https://api.github.com/repos/glogiotatidis/deis/contents/{+path}","compare_url":"https://api.github.com/repos/glogiotatidis/deis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glogiotatidis/deis/merges","archive_url":"https://api.github.com/repos/glogiotatidis/deis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glogiotatidis/deis/downloads","issues_url":"https://api.github.com/repos/glogiotatidis/deis/issues{/number}","pulls_url":"https://api.github.com/repos/glogiotatidis/deis/pulls{/number}","milestones_url":"https://api.github.com/repos/glogiotatidis/deis/milestones{/number}","notifications_url":"https://api.github.com/repos/glogiotatidis/deis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glogiotatidis/deis/labels{/name}","releases_url":"https://api.github.com/repos/glogiotatidis/deis/releases{/id}","created_at":"2014-11-18T16:12:15Z","updated_at":"2014-11-18T16:12:17Z","pushed_at":"2015-02-28T08:15:17Z","git_url":"git://github.com/glogiotatidis/deis.git","ssh_url":"git@github.com:glogiotatidis/deis.git","clone_url":"https://github.com/glogiotatidis/deis.git","svn_url":"https://github.com/glogiotatidis/deis","homepage":"http://deis.io","size":15704,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"default_branch":"master"}},"base":{"label":"deis:master","ref":"master","sha":"1db155f147a3effad7ff438e1224bda18653fdb1","user":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"repo":{"id":11589713,"name":"deis","full_name":"deis/deis","owner":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deis/deis","description":"Your PaaS. Your Rules. ","fork":false,"url":"https://api.github.com/repos/deis/deis","forks_url":"https://api.github.com/repos/deis/deis/forks","keys_url":"https://api.github.com/repos/deis/deis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deis/deis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deis/deis/teams","hooks_url":"https://api.github.com/repos/deis/deis/hooks","issue_events_url":"https://api.github.com/repos/deis/deis/issues/events{/number}","events_url":"https://api.github.com/repos/deis/deis/events","assignees_url":"https://api.github.com/repos/deis/deis/assignees{/user}","branches_url":"https://api.github.com/repos/deis/deis/branches{/branch}","tags_url":"https://api.github.com/repos/deis/deis/tags","blobs_url":"https://api.github.com/repos/deis/deis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deis/deis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deis/deis/git/refs{/sha}","trees_url":"https://api.github.com/repos/deis/deis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deis/deis/statuses/{sha}","languages_url":"https://api.github.com/repos/deis/deis/languages","stargazers_url":"https://api.github.com/repos/deis/deis/stargazers","contributors_url":"https://api.github.com/repos/deis/deis/contributors","subscribers_url":"https://api.github.com/repos/deis/deis/subscribers","subscription_url":"https://api.github.com/repos/deis/deis/subscription","commits_url":"https://api.github.com/repos/deis/deis/commits{/sha}","git_commits_url":"https://api.github.com/repos/deis/deis/git/commits{/sha}","comments_url":"https://api.github.com/repos/deis/deis/comments{/number}","issue_comment_url":"https://api.github.com/repos/deis/deis/issues/comments{/number}","contents_url":"https://api.github.com/repos/deis/deis/contents/{+path}","compare_url":"https://api.github.com/repos/deis/deis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deis/deis/merges","archive_url":"https://api.github.com/repos/deis/deis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deis/deis/downloads","issues_url":"https://api.github.com/repos/deis/deis/issues{/number}","pulls_url":"https://api.github.com/repos/deis/deis/pulls{/number}","milestones_url":"https://api.github.com/repos/deis/deis/milestones{/number}","notifications_url":"https://api.github.com/repos/deis/deis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deis/deis/labels{/name}","releases_url":"https://api.github.com/repos/deis/deis/releases{/id}","created_at":"2013-07-22T19:02:40Z","updated_at":"2015-02-28T03:37:55Z","pushed_at":"2015-02-28T03:37:55Z","git_url":"git://github.com/deis/deis.git","ssh_url":"git@github.com:deis/deis.git","clone_url":"https://github.com/deis/deis.git","svn_url":"https://github.com/deis/deis","homepage":"http://deis.io","size":34653,"stargazers_count":3860,"watchers_count":3860,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":550,"mirror_url":null,"open_issues_count":177,"forks":550,"open_issues":177,"watchers":3860,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deis/deis/pulls/3156"},"html":{"href":"https://github.com/deis/deis/pull/3156"},"issue":{"href":"https://api.github.com/repos/deis/deis/issues/3156"},"comments":{"href":"https://api.github.com/repos/deis/deis/issues/3156/comments"},"review_comments":{"href":"https://api.github.com/repos/deis/deis/pulls/3156/comments"},"review_comment":{"href":"https://api.github.com/repos/deis/deis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deis/deis/pulls/3156/commits"},"statuses":{"href":"https://api.github.com/repos/deis/deis/statuses/297d91581a9a23b0b318ad275d8a455fe61df743"}}}}