Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose output? #600

Closed
olalonde opened this issue Jul 30, 2015 · 3 comments
Closed

Verbose output? #600

olalonde opened this issue Jul 30, 2015 · 3 comments

Comments

@olalonde
Copy link

nodemon doesn't seem to be working as expected. I start it from a Makefile that looks like this (I use foreman to load my .env file):

watch:
    ./node_modules/.bin/nodemon --exec foreman -- run ./scripts/test.sh

And it runs tests for all directories in packages/ (each have their own node_modules/ directory). So I would like to make sure that nodemon ignores packages/*/node_modules and also make sure it monitors all .js files in packages/*/. What's the best way to get more info out of nodemon?

@olalonde
Copy link
Author

Ok, apparently there is a --verbose flag. Reduced the amount of files watched with --ignore "packages/*/node_modules". It is still a bit slow (seems to be eating my CPU). Is there any way to get a better performance on OS X?

@olalonde
Copy link
Author

Also can nodemon understand foreman .env files? It seems nodemon picks up file changes but won't restart the underlying exec'd process.

@remy
Copy link
Owner

remy commented Sep 19, 2015

There's --verbose which gives you more output. For debugging you can also set the env value of DEBUG=nodemon,nodemon:* and it will list exactly what it's watching.

Re: .env files, no, that's specific to foreman, but I thought that foreman would push all those env values into the shell it runs nodemon in, and nodemon will pass all those to the node instance.

@remy remy closed this as completed Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants