-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'ENVFILE' is not recognized as an internal or external command, operable program or batch file. #122
Comments
This is a command that creates/sets the variable ENVFILE to the value .env.dev before running the react build. It does not work on Windows. You can try the windows command set and setx to set environment variables I did not have much success doing that and having react-native-config take that value into account. I'm reading this lib source code now to try to see why the system variable is not being used, If someone has insight feel free to help. |
If you are using powershell: If you are using regular cmd: Good Luck! |
👍! @ofirgeller nailed it, thank you! This should be clearer in the latest readme. |
For anyone using Git Bash: set ENVFILE='name.of.file' && react-native run-android |
How to use this without using SET on windows? Somewhere can I put the ENVFILE on environmental variables and point to something |
After installing and linking the library, and adding the apply to the build.gradle, i'm trying to run 'ENVFILE=.env.dev react-native run-android' and getting that error. Anyone else seen this??
The text was updated successfully, but these errors were encountered: