Revert nodemon change for tests and log errors if they arise

This commit is contained in:
Blade Barringer
2015-10-25 11:10:10 -05:00
parent f06d3cdffe
commit 829b1253fb
2 changed files with 4 additions and 2 deletions

View File

@@ -47,7 +47,10 @@ gulp.task('test:prepare:mongo', (cb) => {
gulp.task('test:prepare:server', ['test:prepare:mongo'], () => {
if (!server) {
server = exec(`NODE_DB_URI="${TEST_DB_URI}" PORT="${TEST_SERVER_PORT}" ./node_modules/.bin/nodemon ./website/src/server.js`);
server = exec(`NODE_DB_URI="${TEST_DB_URI}" PORT="${TEST_SERVER_PORT}" node ./website/src/server.js`, (error, stdout, stderr) => {
if (error) { throw `Problem with the server: ${error}`; }
if (stderr) { console.error(stderr); }
});
}
});