I have a digital ocean droplet running Ubuntu with Nodejs, nginx and Pm2 to reload on crash.
The site works successfully in the sense that it loads my script but unfortunately it does not seem to pick up the latest changes I have done to the /etc/environment
file variable despite having rebooted and shut down my server. I have also tried source /etc/environment
with no success.
The strange part is that my server returns the old values of the /etc/environment
file rather then the latest.
And when I run in shell echo $thevariable
it shows me the updated value.
So it almost looks like the environmental variable has been cached...
Any ideas to how I can get my local environment variable seen by my nodejs server that would be really appreciated.
Thank you.