1

I am new to play framework. I have downloaded the latest version (2.1.1) I am trying to follow the steps from the video tutorial http://www.playframework.com/ but when I make any changes to the code, save it and then refresh localhost:9000 - it still shows the old page. I also tried: "play clean", "play compile" and still no result. Any suggestions? I am using javac 1.7.0._21 and making the changes through eclipse.

  • Have you see on the Play SBT Console message like this : `Compiling xx Scala sources to yourprojectpath\target\scala-2.10\classes...` When you use `play run` command you should see the changes of your page. – Wayan Wiprayoga May 05 '13 at 23:17
  • Hava you solved that problem? I'm having the same problem too. – endrigoantonini Mar 20 '14 at 12:51

3 Answers3

2

Try using ~ run, instead i.e

[My first application] $ ~ run

This should recompile the code every time you make a change. The following page contains more information: http://www.playframework.com/documentation/2.1.1/PlayConsole

Ian
  • 7,480
  • 2
  • 47
  • 51
0

I use intelij as my editor, and before doing editing and refreshing, I start up the app with this command :

play debug run

You should see something like this starting up...

....
[info] Done updating.
--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console...)
Kevin Mansel
  • 2,351
  • 1
  • 16
  • 15
0

In your build.sbt, change this line:

fork in run := true

to

fork in run := false
Feyyaz
  • 3,147
  • 4
  • 35
  • 50