nneves / 3DPrinterInterface

3D Printer Interface
15 stars 3 forks source link

Read configurations from ./config files #12

Closed nneves closed 11 years ago

nneves commented 11 years ago

Remove old un-finished ./config/*.json configuration files and implement a new functionality based on node-config module: https://npmjs.org/package/config

When launching webapp 'node app.js' it will run with the default.json config file. To set an alternative just type:

$ export NODE_ENV=linux
$ node app.js

or

$ export NODE_ENV=macosx
$ node app.js

To create your own config file just clone the default.json, rename it to a specific NAME and then export that name before launching app.js.