blhagadorn / twilio-microservice

Microservice for sending SMS from a container with lots of example
1 stars 1 forks source link

Added postman directory with collection and java directory for java i… #3

Closed hauze-v closed 4 years ago

hauze-v commented 4 years ago

…mplementation

Modified .gitignore to also ignore .idea directory which is used with Intellij IDE

hauze-v commented 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.

blhagadorn commented 4 years ago

Thanks for this!

blhagadorn commented 4 years ago

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.