This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Play 2.5.x and 2.6.x | |
// After starting the application in the console (https://www.playframework.com/documentation/2.5.x/PlayConsole#launch-the-interactive-console) | |
import play.api._ | |
val env = Environment(new java.io.File("."), this.getClass.getClassLoader, Mode.Dev) | |
val context = ApplicationLoader.createContext(env) | |
val loader = ApplicationLoader(context) | |
val app = loader.load(context) | |
Play.start(app) |