yasuoza diary

web and life

Start play application within play console

Sometime you’re playing play framework, you will want to simulate play application like rails console.

First, start play console with auto evolution mode.

1
$ play -DapplyEvolutions.default=true console

And start your application.

1
2
3
scala> import play.core.StaticApplication

scala> new StaticApplication(new java.io.File("."))

Then, you can do what you want.

source: [2.0] how to start application from play console

Comments