Skip to main content

Setup env variables in existing project 🌈

Place doppler tokens in configuration file​

  1. Create empty file scripts/doppler_variables.sh and add this script to new created file.
  • run this command (this will copy template and place it in scripts/doppler_variables.sh)
yarn prepare:env_file
  1. Add correct values to variables (ask one of the developers for that), example:
export DOPPLER_TOKEN_DEVELOPMENT=dp.st.alpha.XXXXxxxxXXXXxxxxXXXXxxxx

Check if everything works correctly.​

In project dir terminal run:

yarn generate:env:(qa/staging/production)

Choose the proper app version depending on the environment for which you want to generate env file.

.env file should be generated and consist of variables passed to Doppler, and some extra doppler variables as DOPPLER_CONFIG.

CONGRATULATION !! 🥳🥳 You have configured the Doppler tool for your project!


Additionally you can start the expo server:

  yarn start