{"action":"created","issue":{"url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/135","labels_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/135/comments","events_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/135/events","html_url":"https://github.com/marklogic/slush-marklogic-node/issues/135","id":104694579,"number":135,"title":"gulp serve-dev ignores app-port","user":{"login":"grtjn","id":611397,"avatar_url":"https://avatars.githubusercontent.com/u/611397?v=3","gravatar_id":"","url":"https://api.github.com/users/grtjn","html_url":"https://github.com/grtjn","followers_url":"https://api.github.com/users/grtjn/followers","following_url":"https://api.github.com/users/grtjn/following{/other_user}","gists_url":"https://api.github.com/users/grtjn/gists{/gist_id}","starred_url":"https://api.github.com/users/grtjn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grtjn/subscriptions","organizations_url":"https://api.github.com/users/grtjn/orgs","repos_url":"https://api.github.com/users/grtjn/repos","events_url":"https://api.github.com/users/grtjn/events{/privacy}","received_events_url":"https://api.github.com/users/grtjn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-03T13:34:06Z","updated_at":"2015-09-04T15:13:45Z","closed_at":null,"body":"This line in gulpfile.js looks suspicious:\r\n\r\n```\r\nvar port = process.env.PORT || config.defaultPort;\r\n```\r\nIt ignores args['app-port'] (should be checked first), and looking at where it is used, not clear why code needs this separate var, while all other options come from config/options structures?\r\n\r\nAlso serve-dev always runs at 3000, unless you have a PORT env var. I'd rather have an extra debug-port or sync-port option instead, and maybe a default in the config somewhere..\r\n"},"comment":{"url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/comments/137762900","html_url":"https://github.com/marklogic/slush-marklogic-node/issues/135#issuecomment-137762900","issue_url":"https://api.github.com/repos/marklogic/slush-marklogic-node/issues/135","id":137762900,"user":{"login":"grtjn","id":611397,"avatar_url":"https://avatars.githubusercontent.com/u/611397?v=3","gravatar_id":"","url":"https://api.github.com/users/grtjn","html_url":"https://github.com/grtjn","followers_url":"https://api.github.com/users/grtjn/followers","following_url":"https://api.github.com/users/grtjn/following{/other_user}","gists_url":"https://api.github.com/users/grtjn/gists{/gist_id}","starred_url":"https://api.github.com/users/grtjn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grtjn/subscriptions","organizations_url":"https://api.github.com/users/grtjn/orgs","repos_url":"https://api.github.com/users/grtjn/repos","events_url":"https://api.github.com/users/grtjn/events{/privacy}","received_events_url":"https://api.github.com/users/grtjn/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T15:13:45Z","updated_at":"2015-09-04T15:13:45Z","body":"Last but not least, running serve-dev twice now results in:\r\n\r\n```\r\nFailed to open socket on port 5858, ...\r\n```\r\n\r\nCould we use random numbers for 3000 and 5858? "}}