每次文件发生更改时,App Engine 本地开发服务器都会重新加载 - 这很酷。不酷的是,它还会重新加载 PyCharm 编辑器的 .idea 文件夹中的更改,从而使日志混乱。尝试将此添加到app.yaml
:
skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$
- ^\.idea$ # added this line in order to try and ignore .idea folder on build
这没有帮助。每次我在编辑器中执行任意操作时仍然会重建(不更改任何代码)。
如何告诉 App Engine 开发服务器要忽略哪个文件夹以进行热重载?