0

每次文件发生更改时,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 开发服务器要忽略哪个文件夹以进行热重载?

4

1 回答 1

0

dev_appserver.py --help提到:

--watcher_ignore_re WATCHER_IGNORE_RE
                        Regex string to specify files to be ignored by the
                        filewatcher. (default: None)

在这种情况下,这与 相关dev_appserver.py,它将检测本地服务器的更改app.yaml并重新加载本地服务器,而app.yaml在 GAE 中运行不应该这样做,因为重新加载是由 完成的gcloud app deploy

于 2017-12-18T16:49:05.700 回答