I'm trying to write a node.js app, which relays on some environment variables which I have put in the .bash_profile file. When I start the node.js application by command line, everything works find and the variables are readable (env.process.FOO). But when I start the app from the XDK, it seems that the app can not reach the variables.
I think the problem is, that while in cli, I'm root, whereas in the other case I'm the xdk deamon. Any ideas on how to access the environment variables even when run from the XDK?
Could you attached the .bash_profile file you are using?
Have you tried to put the variables in /node_app_slot?
When running from the XDK, are you receiving an error message in the log o is it just that it's not running?
This is already the whole .bash_profile file (either appended to /etc/profile or as an own file in /home/root/.bash_profile.
The logging looks like this
If running from command line, it logs the following:
If running from the XDK
Putting the file in /.node_app_slot does not seem to work.