Skip to content

Commit

Permalink
Merge pull request #28 from jdavanne/jda-watch-delay-nodemon-restart
Browse files Browse the repository at this point in the history
add a delay before container restart
  • Loading branch information
subfuzion committed Jun 15, 2016
2 parents 91250bb + 5452d72 commit 43c768c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/commands/Make.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class Make {
watchdist() {
print.ln('While monitoring, you can also enter "rs" in the console to manually restart')
Shell.spawn('nodemon',
['--legacy-watch', '--watch', 'dist', '-e', 'js,json', '--exec', 'docker-compose up --force-recreate'],
['--legacy-watch', '--delay', '1', '--watch', 'dist', '-e', 'js,json', '--exec', 'docker-compose up --force-recreate'],
spawnopts)
}
}

0 comments on commit 43c768c

Please sign in to comment.