{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/generator/issues/139","repository_url":"https://api.github.com/repos/expressjs/generator","labels_url":"https://api.github.com/repos/expressjs/generator/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/generator/issues/139/comments","events_url":"https://api.github.com/repos/expressjs/generator/issues/139/events","html_url":"https://github.com/expressjs/generator/issues/139","id":182753174,"number":139,"title":"what's the port number to run on?","user":{"login":"luckypoem","id":1657864,"avatar_url":"https://avatars.githubusercontent.com/u/1657864?v=3","gravatar_id":"","url":"https://api.github.com/users/luckypoem","html_url":"https://github.com/luckypoem","followers_url":"https://api.github.com/users/luckypoem/followers","following_url":"https://api.github.com/users/luckypoem/following{/other_user}","gists_url":"https://api.github.com/users/luckypoem/gists{/gist_id}","starred_url":"https://api.github.com/users/luckypoem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckypoem/subscriptions","organizations_url":"https://api.github.com/users/luckypoem/orgs","repos_url":"https://api.github.com/users/luckypoem/repos","events_url":"https://api.github.com/users/luckypoem/events{/privacy}","received_events_url":"https://api.github.com/users/luckypoem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expressjs/generator/labels/docs","name":"docs","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"assignees":[{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-10-13T10:31:24Z","updated_at":"2016-10-13T16:01:34Z","closed_at":null,"body":"hi.\r\n\r\nroot@AR:/usr/local/express-site# ls\r\napp.js\tbin  node_modules  package.json  public  routes  views\r\nroot@AR:/usr/local/express-site# npm start\r\n\r\n> express-site@0.0.0 start /usr/local/express-site\r\n> node ./bin/www\r\n\r\ni should visit http://my_vps_ip:which_port_number?"},"comment":{"url":"https://api.github.com/repos/expressjs/generator/issues/comments/253557993","html_url":"https://github.com/expressjs/generator/issues/139#issuecomment-253557993","issue_url":"https://api.github.com/repos/expressjs/generator/issues/139","id":253557993,"user":{"login":"gokaygurcan","id":1509413,"avatar_url":"https://avatars.githubusercontent.com/u/1509413?v=3","gravatar_id":"","url":"https://api.github.com/users/gokaygurcan","html_url":"https://github.com/gokaygurcan","followers_url":"https://api.github.com/users/gokaygurcan/followers","following_url":"https://api.github.com/users/gokaygurcan/following{/other_user}","gists_url":"https://api.github.com/users/gokaygurcan/gists{/gist_id}","starred_url":"https://api.github.com/users/gokaygurcan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gokaygurcan/subscriptions","organizations_url":"https://api.github.com/users/gokaygurcan/orgs","repos_url":"https://api.github.com/users/gokaygurcan/repos","events_url":"https://api.github.com/users/gokaygurcan/events{/privacy}","received_events_url":"https://api.github.com/users/gokaygurcan/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T16:01:34Z","updated_at":"2016-10-13T16:01:34Z","body":"@Velua, your answer is true but not complete. \r\n\r\n```javascript\r\nvar port = normalizePort(process.env.PORT || '3000');\r\napp.set('port', port);\r\n```\r\n\r\nThis was copied from `./bin/www`, so you have three options here: \r\n- using 3000, which is default\r\n- changing the number in file\r\n- using an argument. \r\n\r\nFor the last option, start your app like this:\r\n`PORT=1234 node ./bin/www`\r\n"}}
{"actor":{"display_login":"gokaygurcan"}}