mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
Adjust start server task to use nodemon to recover from syntax errors
This commit is contained in:
parent
a5c0bae273
commit
7fe2a19bc5
2 changed files with 3 additions and 2 deletions
|
|
@ -125,6 +125,7 @@
|
|||
"mocha": "^2.3.3",
|
||||
"mongodb": "^2.0.46",
|
||||
"mongoskin": "~0.6.1",
|
||||
"nodemon": "^1.8.0",
|
||||
"protractor": "~2.0.0",
|
||||
"rewire": "^2.3.3",
|
||||
"shelljs": "^0.4.0",
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ 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 ./website/src/server.js`);
|
||||
server = exec(`NODE_DB_URI="${TEST_DB_URI}" PORT="${TEST_SERVER_PORT}" ./node_modules/.bin/nodemon ./website/src/server.js`);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -312,7 +312,7 @@ gulp.task('test:api', ['test:prepare:server'], (done) => {
|
|||
});
|
||||
});
|
||||
|
||||
gulp.task('test:api:watch', () => {
|
||||
gulp.task('test:api:watch', ['test:prepare:server'], () => {
|
||||
process.env.RUN_INTEGRATION_TEST_FOREVER = true;
|
||||
gulp.watch(['website/src/**', 'test/api/**'], ['test:api']);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue