-
Notifications
You must be signed in to change notification settings - Fork 945
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
Watching files always detects changes #129
Comments
To my understanding you can use the .foreverignore file to control what files you would like to ignore from the watch list. @mmalecki would know more |
Exactly what @indexzero said, you can just put some patterns into |
Yes it detects changes when there are no changes. At first I thought maybe it was because I hadn't created a .foreverignore, but even creating one didn't change the behaviour. If there's a way I can get you some more useful debugging info just let me know. Is it worth me doing any testing with the watch library? |
Try this:
|
No extra info in the terminal sorry, it just lists every file in my working copy (except those in .gitignore) and restarts the script. It then does the same thing once a second. |
@rodnaph Classic checklist: can you try with v0.4.12? Can you try on some different shell, like bash? |
I think I've tracked this down to a bug in watch, which i've opened a pull request on: |
This has been resolved in |
I'm getting this same issue. Wonder what the hold up is for publishing to npm. |
@GEDDesign the fix is published to npm. Have you reinstalled forever yet? Dependencies won't update themselves ;) |
@indexzero cool you're right, watch 0.4.0 has been published to npm. I reinstalled forever but it still brought down watch 0.3.3. I submitted a pull request for updating the dependency version. I manually replaced forever's watch with the latest and --watch still doesn't do anything. I can create another separate issue for that. |
OK, can anyone with such issue provide me SSH access? I can't reproduce it neither on OS X nor Linux. |
all is working now with |
Yay! <3 |
I'm running forever like this...
$> forever -w server.js
But changes are always detected in all the files in my project, and the script is restarted once a second.
If there is a legitimate change in a file then only that file is listed as being changed, and forever correctly restarts the script. But if there are no changes then it reports all files as having changed and restarts the script.
I'm on OSX 10.6.8, using zsh, node 0.4.10, and npm versions...
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
The text was updated successfully, but these errors were encountered: