plamb
plamb

Reputation: 5636

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

Upvotes: 6

Views: 1085

Answers (1)

Aunmag
Aunmag

Reputation: 962

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

libraryDependencies += "com.lightbend.play" %% "play-file-watch" % "1.1.3"

Upvotes: 1

Related Questions