Skip to content

Commit

Permalink
CLI: export packager environment variables (#32666)
Browse files Browse the repository at this point in the history
Summary:
Custom metro port not working without exporting variables from `.packager.env`

## Changelog

[General] [Fixed] - Fix support for custom port

Pull Request resolved: #32666

Test Plan: run `react-native run-android --port=8082` and `react-native run-ios --port=8082`

Reviewed By: yungsters

Differential Revision: D32694233

Pulled By: cortinico

fbshipit-source-id: 42e803d56b83608024b901d2a3024733ed7099b7
  • Loading branch information
enniel authored and facebook-github-bot committed Nov 29, 2021
1 parent a596e98 commit b399c2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/launchPackager.command
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ clear

THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)

# export packager environment variables
source "$THIS_DIR/.packager.env"

if [ -n "${RCT_PACKAGER_LOGS_DIR}" ] ; then
echo "Writing logs to $RCT_PACKAGER_LOGS_DIR"
# shellcheck source=/dev/null
Expand Down

0 comments on commit b399c2e

Please sign in to comment.