gpt4 book ai didi

playframework - Play Framework 2.3 - 不检测变化

转载 作者:行者123 更新时间:2023-12-02 01:43:24 25 4
gpt4 key购买 nike

每当我对我的 Play 应用程序进行更改时,它不会重新编译(自动重新加载?)更改,并且当我刷新页面时,我会看到该应用程序的旧版本。每次更改源代码时,我都必须 Control + D,这很不方便。

我在旧应用程序上尝试过,创建了新应用程序,activator cleanactivator ~ run ... 没有帮助

...有什么想法吗?

最佳答案

使用 this 让它工作对 Github 上提交的问题的回答

The simplest workaround is to use polling instead, by adding the following to your build:

PlayKeys.playWatchService := play.sbtplugin.run.PlayWatchService.sbt(pollInterval.value)

Note that I would not use this in combination with ~run, because it will mean that Play and sbt will both be polling for changes in 2 separate threads, which is going to chew up a lot of cpu. Rather, just use it with run.

关于playframework - Play Framework 2.3 - 不检测变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27182804/

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