jembi/openhim-core-js — pull request #42 by bluephone (2014-04-10 10:31:22+00:00)
Title: Changed unit tests to use different database. Hide logging from test out...

...put. I have created 4 config json files: default.json, development.json, production.json and test.json to hold the different config values.

To run a test you can use: NODE_ENV=test cake test // This runs the tests with the logger set at level 'warning' and use the mongodb://localhost/openhim-test database.

OR

To start the server you could use: NODE_ENV=production node --harmony lib/server.js // This run with the logger set at level 'info' and use the mongodb://localhost/openhim-production database.

OR

To use the development database at mongodb://localhost/openhim-development you could start the server with:
NODE_ENV=development node --harmony lib/server.js
OR
node --harmony lib/server.js

The logger level for development could be changed to 'debug' to show any debug messages