Closed hauze-v closed 4 years ago
So I couldn't seem to read the env variables from my local .env
file. I was using System.getenv("ACCOUNT_SID");
for example to try and read the env variable from the other file but it kept coming back null
. How I got it to work was by managing my run configuration in the Inteliji IDE. There's an option there to add ENV Variables which is what I did. Then the System.getenv(" ");
calls started working... not sure if that's what we want.
Thanks for this!
I think you might need to call the .env file like in the go example (some env utilities default to that). Intellij IDE works but I guess it's not preferrable in the long run.
…mplementation
Modified .gitignore to also ignore .idea directory which is used with Intellij IDE