{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/302","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/302/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/302/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/302","id":168492776,"number":302,"title":"Slow start script","user":{"login":"sdn90","id":2491713,"avatar_url":"https://avatars.githubusercontent.com/u/2491713?v=3","gravatar_id":"","url":"https://api.github.com/users/sdn90","html_url":"https://github.com/sdn90","followers_url":"https://api.github.com/users/sdn90/followers","following_url":"https://api.github.com/users/sdn90/following{/other_user}","gists_url":"https://api.github.com/users/sdn90/gists{/gist_id}","starred_url":"https://api.github.com/users/sdn90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdn90/subscriptions","organizations_url":"https://api.github.com/users/sdn90/orgs","repos_url":"https://api.github.com/users/sdn90/repos","events_url":"https://api.github.com/users/sdn90/events{/privacy}","received_events_url":"https://api.github.com/users/sdn90/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/underlying%20tools","name":"underlying tools","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-30T23:46:00Z","updated_at":"2016-07-31T02:15:40Z","closed_at":null,"body":"Node: v5.4.1\r\nOS:  OS X 10.11.5 / Darwin Stevens-MBP 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64\r\n\r\nI've narrowed it down to the `detect-port` library used. I tested out the library's CLI and got similar results.\r\n\r\nAdded a timer to the start script:\r\n```javascript\r\nconsole.time('detect')\r\n\r\ndetect(DEFAULT_PORT).then(port => {\r\n  console.timeEnd('detect')\r\n  ...\r\n})\r\n```\r\n\r\nResult of running `npm run start`\r\n```bash\r\n/Users/steven/my_projects/autocomplete steven@Stevens-MBP% npm run start\r\n\r\n> autocomplete@0.0.1 start /Users/steven/my_projects/autocomplete\r\n> react-scripts start\r\n\r\ndetect: 75279.878ms\r\n```"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/236403638","html_url":"https://github.com/facebookincubator/create-react-app/issues/302#issuecomment-236403638","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/302","id":236403638,"user":{"login":"sdn90","id":2491713,"avatar_url":"https://avatars.githubusercontent.com/u/2491713?v=3","gravatar_id":"","url":"https://api.github.com/users/sdn90","html_url":"https://github.com/sdn90","followers_url":"https://api.github.com/users/sdn90/followers","following_url":"https://api.github.com/users/sdn90/following{/other_user}","gists_url":"https://api.github.com/users/sdn90/gists{/gist_id}","starred_url":"https://api.github.com/users/sdn90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdn90/subscriptions","organizations_url":"https://api.github.com/users/sdn90/orgs","repos_url":"https://api.github.com/users/sdn90/repos","events_url":"https://api.github.com/users/sdn90/events{/privacy}","received_events_url":"https://api.github.com/users/sdn90/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T02:15:40Z","updated_at":"2016-07-31T02:15:40Z","body":"I'm pretty sure I have a vanilla setup.\r\n\r\nThe problem is on this line:\r\nhttps://github.com/xudafeng/detect-port/blob/master/lib/index.js#L64\r\n\r\nMy understanding is that the `ipv4` library returns my local IP assigned by DHCP.\r\n\r\nIf I change this to `'host': '127.0.0.1'`, start time is almost instant. I get the `Something else is running at port 3000` prompt if I run it while port 3000 is assigned.\r\n\r\nThe network stuff is out the scope of my knowledge.. Not sure what the implications are if this was just hardcoded to something like `127.0.0.1`.\r\n\r\nIf anyone else is having this problem on OS X, easy fix is disconnect from your network and run start.\r\n"}}
{"actor":{"display_login":"sdn90"}}