Goapp服务 - 警告:文件太多 [英] Goapp serve - Warning: There are too many files

查看:146
本文介绍了Goapp服务 - 警告:文件太多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到go_appengine SDK版本1.9.54后,我总是得到以下警告,即使只有一两个.go文件在app目录中使用。因此,文件更改不会自动检测到,并且不会重新生成应用程序。

After upgraded to go_appengine SDK version 1.9.54, I always get following warning, even just one or two .go files are used in the app directory. As a result, file changes are not automatically detected and app is not rebuilt.

$ goapp serve

go_appengine-1.9.54 / google / appengine / tools / devappserver2 / mtime_file_watcher.py:182:UserWarning:您的应用程序中有太多文件需要更改监控。您可能必须重新启动开发服务器以查看文件的一些更改。
'您申请中的文件太多了'

go_appengine-1.9.54/google/appengine/tools/devappserver2/mtime_file_watcher.py:182: UserWarning: There are too many files 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. 'There are too many files in your application for '

有什么想法?

Any ideas?

推荐答案

当$ GOPATH目录下的文件受到文件监控并且文件数很大时,会发生相应的错误。
在我的情况下,通过在app.yaml的skip_files选项中指定vendor或具有许多文件的项目,我可以防止发生相应的错误。

A corresponding error occurs when the file under the "$GOPATH" directory is subject to file monitoring and the number of files is large. In my case, by specifying "vendor" or a project with many files in "skip_files" option of "app.yaml", I was able to prevent the corresponding error from occurring.

https://cloud.google .com / appengine / docs / standard / python / config / appref#skip_files

https://cloud.google.com/appengine/docs/standard/python/config/appref#skip_files

skip_files:
- .*node_modules
- .*vendor
- .*project-name-having-too-many-files

这篇关于Goapp服务 - 警告:文件太多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆