{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/6180","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/6180/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/6180/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/6180/events","html_url":"https://github.com/facebook/react-native/pull/6180","id":136867056,"number":6180,"title":"Added way to not launch packager during CI build, as it hangs CI builds","user":{"login":"BretJohnson","id":245892,"avatar_url":"https://avatars.githubusercontent.com/u/245892?v=3","gravatar_id":"","url":"https://api.github.com/users/BretJohnson","html_url":"https://github.com/BretJohnson","followers_url":"https://api.github.com/users/BretJohnson/followers","following_url":"https://api.github.com/users/BretJohnson/following{/other_user}","gists_url":"https://api.github.com/users/BretJohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/BretJohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BretJohnson/subscriptions","organizations_url":"https://api.github.com/users/BretJohnson/orgs","repos_url":"https://api.github.com/users/BretJohnson/repos","events_url":"https://api.github.com/users/BretJohnson/events{/privacy}","received_events_url":"https://api.github.com/users/BretJohnson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-27T02:30:36Z","updated_at":"2016-03-14T23:28:43Z","closed_at":"2016-03-14T23:28:43Z","pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/6180","html_url":"https://github.com/facebook/react-native/pull/6180","diff_url":"https://github.com/facebook/react-native/pull/6180.diff","patch_url":"https://github.com/facebook/react-native/pull/6180.patch"},"body":"Change & motivation:\r\nAdded an environment variable, RCT_NO_LAUNCH_PACKAGER, that when set\r\nXcode not the launch the packager when building. This switch is needed\r\nfor CI builds, where launching the packager, which stays running, causes\r\nthe build to hang; port conflicts can be an issue as well. Really the\r\npackager is only appropriate for interactive developer builds.  This\r\nis a problem for Visual Studio Team Services where we just added\r\nReact Native CI build support with a React Native build extension and\r\nsurely a problem for all CI systems.  This fix is simple, and now if\r\nthe build machine sets RCT_NO_LAUNCH_PACKAGER globally or passes\r\nit as an arg to xcodebuild, the packager won't launch and all is well.\r\n\r\nTesting:\r\nI tested by building both with & without the environment variable defined, ensuring\r\nthings work probably in both cases.  I also added support to our VSTS build ask to use\r\nthis and verified it works as expected too, when setting the variable.."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/196565265","html_url":"https://github.com/facebook/react-native/pull/6180#issuecomment-196565265","issue_url":"https://api.github.com/repos/facebook/react-native/issues/6180","id":196565265,"user":{"login":"BretJohnson","id":245892,"avatar_url":"https://avatars.githubusercontent.com/u/245892?v=3","gravatar_id":"","url":"https://api.github.com/users/BretJohnson","html_url":"https://github.com/BretJohnson","followers_url":"https://api.github.com/users/BretJohnson/followers","following_url":"https://api.github.com/users/BretJohnson/following{/other_user}","gists_url":"https://api.github.com/users/BretJohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/BretJohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BretJohnson/subscriptions","organizations_url":"https://api.github.com/users/BretJohnson/orgs","repos_url":"https://api.github.com/users/BretJohnson/repos","events_url":"https://api.github.com/users/BretJohnson/events{/privacy}","received_events_url":"https://api.github.com/users/BretJohnson/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T23:28:43Z","updated_at":"2016-03-14T23:28:43Z","body":"Closing / reopening PR, to retrigger Travis build."}}