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
Building a release with a specific environement file #200
Comments
Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/goatandsheep/react-native-dotenv/issues/200 |
You will need to configure your signing config for each of your environments |
@goatandsheep Where in the signingconfig can you specify the name of the environment it should use? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
did you find a way? @ous24 |
did you find a way @v4irajvimu ? |
I will review this ticket to add signing config details to Lib docs |
Hey, thank you for opening this issue! 🙂 To boost priority on this issue and support open source please tip the team at https://issuehunt.io/r/goatandsheep/react-native-dotenv/issues/200 |
I will review this ticket but likely I'll recommend setting |
@ous24 i'm modified the "Start Package" script in "Build Phases" and it's working for me, just added # react-native-dot-env
if [ "$CONFIGURATION" = "Staging" ]; then
export APP_ENV=stag
elif [ "$CONFIGURATION" = "Release" ]; then
export APP_ENV=prod
elif [ "$CONFIGURATION" = "Debug" ]; then
export APP_ENV=dev
fi
echo "export RCT_METRO_PORT=${RCT_METRO_PORT} APP_ENV=${APP_ENV}" > `node --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'"` |
i can't figure a way to build a release with my .env.staging , the release always use the .env.production file
The text was updated successfully, but these errors were encountered: