When running my Node app with node server.js
, process.env
returns undefined
, so I'm unable to access any environment variables. This also seems to occur when I attempt to deploy my app to Duostack.
Calling process.env
from the command line seems to work, though:
$ node
> process.env
{ MANPATH: '/opt/local/share/man:',
TERM_PROGRAM: 'Apple_Terminal',
...
Any idea what could be going wrong?