Play Framework 2.3 - does not detect changes

Whenever I make changes in my Play app, it doesn't recompile (automatically reloads?) The changes and when I refresh the page I see the old version of the app. I have to Control + D

every time I make changes to the source code and it's not convenient.

I tried this on old apps, created a new app activator clean

, activator ~ run

... doesn't help

... any ideas?

+3


source to share


1 answer


Got it working using this answer to a question posted on Github



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

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

Note that I won't be using this in conjunction with ~run

, because it would mean Play and sbt will poll for changes on 2 separate threads that are going to chew on a lot of CPU. Rather, just use it with run

.

+2


source







All Articles