How do I run a Play Framework 2.0 application as a Windows service?

This worked for me on Windows 7: Create folder C:\my_app Go to your Play! app folder in command line and type play dist Copy generated “something-SNAPSHOT” folder to C:\my_app Download YAJSW and extract to C:\my_app In C:\my_app\something-SNAPSHOT\ make a new file start.bat and fill it with command like this: java -cp “C:\my_app\something-SNAPSHOT\lib\*” play.core.server.NettyServer Save it … Read more

How do I change the default port (9000) that Play uses when I execute the “run” command?

Play 2.x In Play 2, these are implemented with an sbt plugin, so the following instructions are really just sbt tasks. You can use any sbt runner (e In Play 2, these are implemented with an sbt plugin, so the following are really just sbt tasks. You can use any sbt runner (e.g. sbt, play, … Read more