fix(server): path to .env and launch on Windows

This commit is contained in:
ValeraS
2018-10-08 12:58:56 +03:00
committed by Stuart Taylor
parent 6fb3b0503e
commit a426d85c81
3 changed files with 7 additions and 6 deletions

View File

@ -4,9 +4,12 @@ const nodemon = require('nodemon');
nodemon({
ext: 'js json',
// --silent squashes an ELIFECYCLE error when the server exits
exec: 'DEBUG=fcc* npm run --silent babel-dev-server',
exec: 'npm run --silent babel-dev-server',
watch: path.resolve(__dirname, './server'),
spawn: true
spawn: true,
env: {
DEBUG: 'fcc*'
}
});
nodemon.on('restart', function nodemonRestart(files) {