Skip to content

Can't get most basic multi env to work. #385

Closed Answered by soemarko
soemarko asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out. Needed to run start --resetCache in between (and sometimes, needed to re-start a couple more times for the changes to pickup).

A bit annoying since run-ios/android doesn't pass through --resetCache, this doesn't work with my flow. And at this point APP_ENV=production yarn start --resetCache might as well becomes cp .env.production .env && yarn start --resetCache.

A simple config.js file may fit me better at this point. Maybe i'll revisit this plugin in the future. Thanks!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goatandsheep
Comment options

Answer selected by soemarko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants