0

I have a NodeJS apps hosted on a server behind IISNode. I have set the NODE_ENV in the web.config

<iisnode node_env="staging" />

and in the iisnode.yml

node_env: staging

but my application does not seem to pick it up. It picks up the values that I had initially set when I set up the server. Any ideas why?

mithun_daa
  • 4,334
  • 5
  • 38
  • 50

1 Answers1

0

Turns out Node was picking up the environment variable I had set rather than the values in the config. I removed the environment variable and boom - it started picking up the values in the config.

mithun_daa
  • 4,334
  • 5
  • 38
  • 50