Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In node-supervisor, how do I watch everything in a directory for changes?

https://github.com/isaacs/node-supervisor

I want to watch everything inside the "api" directory and all its subdirectories (recursively). How can I do that?

sudo supervisor -w app.js,api app.js

This doesn't seem to work. It only watches the "api" directory, not its subdirectories.

like image 219
user847495 Avatar asked Dec 13 '22 07:12

user847495


1 Answers

I just watch all extensions I'm using:

supervisor -e 'js|ejs|less' app.js
like image 172
chovy Avatar answered Dec 14 '22 23:12

chovy