Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #17 from emartech/add-legacy-watch-to-nodemon
Browse files Browse the repository at this point in the history
[Nodemon] Add possibility to use legacy watching for Docker
  • Loading branch information
sonicoder86 authored Jul 9, 2017
2 parents d2ed7d0 + 7ad126f commit b8eadcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ Config.server = {
gulp.task('server', tasks.server.start);
```

*Docker*

If you'd like to run your server in Docker and restart on file changes you have to set the `NODEMON_LEGACY_WATCH` environment variable to `true`. It forces Nodemon to use legacy change detection mode which is the only way to support Docker.


#### Copy
Expand Down
1 change: 1 addition & 0 deletions tasks/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = function(gulp, config) {
ext: 'js jade',
watch: [config.build.distPath],
delay: 1,
legacyWatch: env.NODEMON_LEGACY_WATCH === 'true',
env: env
}).on('restart', function() {
notifier.notify({
Expand Down

0 comments on commit b8eadcb

Please sign in to comment.