AppEngine too many directory to be monitored
google-app-engine
Solution
Updated for current version of GAE's `goapp serve` watcher (`_IGNORED_DIRS` was replaced).
In `.../appengine/tools/devappserver2/watcher_common.py`, change
def skip_ignored_dirs(dirs):
"""Skip directories that should not be watched."""
_remove_pred(dirs, lambda d: d.startswith(_IGNORED_PREFIX))
to
_IGNORED_DIRS = ('node_modules',)
def skip_ignored_dirs(dirs):
"""Skip directories that should not be watched."""
_remove_pred(dirs, lambda d: d.startswith(_IGNORED_PREFIX) or d in _IGNORED_DIRS)
Problem
I got this warning when I ran goapp serve. WARNING 2014-07-03 10:39:40,724 inotify_file_watcher.py:143] There are too many directories in your application for changes in all of them to be monitored. You may have to restart the development server to see some changes to your files The cause maybe because of the npm_modules folder. I try to solve it using skip_files in app.yaml but the warning still exist. ``` skip_files: - ^(.*/)?.*/node_modules/.*$ - ^(.*/)?#.*#$ - ^(.*/)?.*~$ - ^(.*/)?.*\.py[co]$ - ^(.*/)?.*/RCS/.*$ - ^(.*/)?\..*$ ``` What should I do?