Skip to content
Cristian Douce edited this page Nov 1, 2013 · 6 revisions

Server

Development

Run NODE_ENV=development node ./bin/dos-install -c -C to pre-populate a config/testing.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/testing.json. Then edit it with environment's custom settings.

Client

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

Note: The application launch will fail if client side config is not compiled. To do so, if not run with make then, before launch run node ./bin/dos-build to build an compile client's assets, including config.