When running activator ~ run
, here is what happens:
- When the dev server first runs, I get a message in the console saying that the server is listening on port 9000.
- Now, when I make changes to the files and save, nothing is outputted to the console.
- When I refresh the page, however, I see a message about reload in the console, and the browser loads.
I thought ~ run
meant re-run at every file change?
According to Play Docs:
So it apparently only applies to Scala template files.
EDIT
Ryan is right, just tested it and it works also for Scala files.
Since it does not work at all with the whitespace between "~" and "run" I suppose that's not a problem as well (you quoted it with whitespace).
Open your
build.sbt
file and check if it contains line likefork in run := true
in it. If it does, delete the line or set the value tofalse
.Why is that?
this fork is required by Activator UI to spawn the processes, so every time, when you are starting your app from UI, it adds the line first to make sure that will exist. Anyway it causes some problems with hot reload (and also some other weird things, like app hanging, memory leaks).
Have you tried starting the console first by typing
Then after the console is up you could type
Usually, whenever any files changed/added. It will trigger compilation process.