0.1.0 • Published 9 years ago

conf-env-demo v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

conf-env use demo

sample

$ npm install conf-env-demo
$ cd ./node_modules/conf-env-demo

Then

Test development

$ export NODE_ENV=development && node app.js

Test production

$ export NODE_ENV=production && node app.js

Test staging

$ export NODE_ENV=staging && node app.js

Output

package name is : conf-env-demo
current config env is :  development
current-> development.js
local -> read from local config
Enter any key to quit 
quiting...