-
Notifications
You must be signed in to change notification settings - Fork 616
Config module
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.
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.
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 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.
Note: The application launch will fail if client side config is not compiled. Run
node ./bin/dos-build
before launch to build and compile client's assets, including config (or usemake
).
Visit our official website - Developed by Democracia en Red and contributors from the world over!