I created an Ubuntu micro instance on AWS, installed node and everything. I have some API credentials in my node.js app, that I'd like to store in environment variables. I'm not Linux savy, so I googled and found that best way to store these variables permanently is to edit etc/environment. I did so, and this is how it looks:
NO_OF_DAYS=30
REFRESH_INTERVAL_MINS=30
API_PASSWORD="**pppp!!"
API_USERNAME="johnny88!"
I rebooted system after this change, as I read it is needed.
Yet when I try to access these variables in my node.js app, with i.e. process.env.API_PASSWORD or process.env.NO_OF_DAYS, it just returns undefined as a value. What am I doing wrong here?