mirror of https://github.com/status-im/metro.git
Setting current working directory for dev server.
Summary: * This allows `react-native` to work for users on fedora. * `react-native run-android` was failing because the launch packager script was unable to find packager.sh (see `source` in `man bash`). * This change sets cwd for the dev server when run with `run-android`. Closes https://github.com/facebook/react-native/pull/7316 Differential Revision: D3255866 fb-gh-sync-id: 88f6b18f7c61636ce8fecef77f7f4e60b1d9a637 fbshipit-source-id: 88f6b18f7c61636ce8fecef77f7f4e60b1d9a637
This commit is contained in:
parent
daa426c46a
commit
4695f84448
|
@ -13,7 +13,7 @@ clear
|
||||||
|
|
||||||
THIS_DIR=$(dirname "$0")
|
THIS_DIR=$(dirname "$0")
|
||||||
pushd "$THIS_DIR"
|
pushd "$THIS_DIR"
|
||||||
source packager.sh
|
source ./packager.sh
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo "Process terminated. Press <enter> to close the window"
|
echo "Process terminated. Press <enter> to close the window"
|
||||||
|
|
Loading…
Reference in New Issue