Skip to content
Matias Lescano edited this page Apr 28, 2015 · 6 revisions

Server

Development

Run NODE_ENV=development node ./bin/dos-install -c -C to pre-populate a config/development.json. Then edit it with environment's custom settings.

Testing

Run NODE_ENV=testing node ./bin/dos-install -c -C to pre-populate a config/testing.json. Then edit it with environment's custom settings.

Production

Run NODE_ENV=production node ./bin/dos-install -c -C to pre-populate a config/production.json. Then edit it with environment's custom settings.

Client

Client side config module is built dynamically from ./config/<environment>.json file. It will only expose the config settings listed under client key at the very same ./config/<environment>.json file. This is done at /lib/config/client.js