Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

play 2.6 auto-reload doesn't show changes after first compile

When I execute sbt run and refresh, localhost:9000 will show my changes. If i change something else, save my project and hit refresh again localhost:9000 does not show my changes. If i try sbt ~run I can see sbt recompiling every time i change a file and save, however refreshing localhost:9000 does not show any updates. Only if I terminate the sbt process and restart it can I see my changes.

My setup:

Windows 8.1

Play 2.6

sbt 1.0.2

scala 2.12.3

Intellij 2017.2.5

like image 301
plamb Avatar asked Oct 31 '17 19:10

plamb


1 Answers

Try updating Play's file watcher by adding this to build.sbt:

libraryDependencies += "com.lightbend.play" %% "play-file-watch" % "1.1.3"
like image 176
Aunmag Avatar answered Oct 16 '22 01:10

Aunmag