I'm looking at nodepad: http://dailyjs.com/2010/11/15/node-tutorial-3/
And they have different development environments, development, staging, production.
How do I configure my server appropriately so that the app would know what environment it's supposed to be?
Thanks.
See the express framework documentation:
To alter the environment we can set the NODE_ENV environment variable, for example:
$ NODE_ENV=production node app.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With