Skip to content

Commit

Permalink
Add cross platform support for start-hot mode in server.js (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 authored Nov 1, 2016
1 parent eafd949 commit f2cb746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const server = app.listen(PORT, 'localhost', serverError => {
}

if (argv['start-hot']) {
spawn('npm', ['run', 'start-hot'], { env: process.env, stdio: 'inherit' })
spawn('npm', ['run', 'start-hot'], { shell: true, env: process.env, stdio: 'inherit' })
.on('close', code => process.exit(code))
.on('error', spawnError => console.error(spawnError));
}
Expand Down

0 comments on commit f2cb746

Please sign in to comment.