0

我最近切换到 PlayFramework 2.3。我的应用程序使用由 sbt 插件添加的 CoffeeScript。当我的应用程序运行时(通过“激活器运行”),如果我触摸任何咖啡文件并在浏览器中按 F5,则整个应用程序将重新加载:

[info] Done updating.

---  Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console...)

[info] Compiling 4 Scala sources and 2 Java sources to C:\Users\myuserlogin\Work\myappname\target\scala-2.11\classes...
[info] CoffeeScript compiling on 1 source(s)
[info] play - Application started (Dev)
[info] CoffeeScript compiling on 1 source(s)

--- (RELOAD) ---

[info] play - Application started (Dev)

有没有办法不重新加载整个应用程序,就像在 PlayFramework 2.2 中一样?

4

1 回答 1

1

这是 2.3 中的错误 - https://github.com/playframework/playframework/pull/3105

它已被修复,并希望它会作为 2.3.2 的一部分发布,并有望在本周发布

如果您也遇到这个问题,还可以查看这个 [still open] 问题:https ://github.com/playframework/playframework/issues/2905

于 2014-07-02T14:57:20.137 回答