How can I tell Play to compile templates immediately after saving the template file? This would be useful to pick up changes of template constructor without leaving Eclipse to hit refresh in the browser.
Asked
Active
Viewed 526 times
1 Answers
4
Simply use the ~run
or ~compile
command:
In your shell
$ play
In the play console
~run
or directly in the shell
$ play ~run

deamon
- 89,107
- 111
- 320
- 448

Julien Lafont
- 7,869
- 2
- 32
- 52
-
1Thanks. Life can be so easy! For other readers: [Play SBT documentation](http://www.playframework.org/documentation/2.0.4/PlayConsole) – deamon Jan 12 '13 at 11:50
-
@biesior Thanks, I thought that it didn't work directly, but you're right ! – Julien Lafont Jan 12 '13 at 14:11
-
@JulienLafont NP :) There is some mismatch when you want to use additional settings (i.e. non default port) - but it can be solved as well with proper use of quotas. – biesior Jan 12 '13 at 14:21