At top of my app.js file I put
NODE_ENV=\'development\';
but I get error that NODE_ENV is not defined. But in the nodejs documentation is says
In order to start from cmd you can try
NODE_ENV=development node yourappname.js
If you are doing this in server where forever is installed you can mention the environment variable like
NODE_ENV=development forever start yourappname.js