Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a development environment and how do I set it up?

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.

like image 439
Harry Avatar asked Mar 25 '11 23:03

Harry


1 Answers

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

like image 96
Stoive Avatar answered Sep 22 '22 16:09

Stoive