Skip to content

Creating Environment Variables

Yash Totale edited this page Jan 25, 2021 · 8 revisions

Creating Environment Variables

Creating new environment variables is a multi-step process as secret variables are stored as environment variables, forcing us to git ignore our .env file.

Add variable to .env

  • Make sure that the variable(s) you are adding does not already exist in the .env file
  • If it doesn't already exist, add the variable(s) to the end of the .env file in the format <VARIABLE_NAME>=<value> (Ex. EXAMPLE_VAR=testing)
  • Update .env.example with the name of your new variable(s) in the format <VARIABLE_NAME>= (Ex. EXAMPLE_VAR=)

Update Google Drive

For others to access your new variable(s) when setting up their dev environment, you need to update the shared .env file in Google Drive

Post on Slack

Posting a message on the Hack4Impact Slack channel will notify others that they need to update their .env files with the new variable(s).

Clone this wiki locally