gpt4 book ai didi

google-app-engine - AppEngine 太多目录需要监控

转载 作者:太空宇宙 更新时间:2023-11-03 15:27:01 26 4
gpt4 key购买 nike

我在运行 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

原因可能是因为 npm_modules 文件夹。我尝试使用 app.yaml 中的 skip_files 来解决它,但警告仍然存在。

skip_files:
- ^(.*/)?.*/node_modules/.*$
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$

我该怎么办?

最佳答案

更新为 current version GAE 的 goapp serve 观察者(_IGNORED_DIRSreplaced )。

.../appengine/tools/devappserver2/watcher_common.py 中,更改

def skip_ignored_dirs(dirs):
"""Skip directories that should not be watched."""

_remove_pred(dirs, lambda d: d.startswith(_IGNORED_PREFIX))

_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)

关于google-app-engine - AppEngine 太多目录需要监控,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24551795/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com