Replies: 4 comments 5 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
-
There is a very old related ticket I wonder what part of the play code exactly is triggering the application load after the first request |
Beta Was this translation helpful? Give feedback.
2 replies
-
In dev mode, the code that triggers an application reload / (re-)compile can be found here: So what happens is that in a server backend this applicationProvider.get is called, which in DEV mode checks if a file was modified and eventually a re-compile happens: As you can see this happens inside the handleRequest method.So to load/compile the app eagerly, this get method(or the reload method?) has to be called once. I am not sure if it is as easy as that, but it would be worth a try. Also, I would prefer if that would be not the default, but only when running Play with a flag (or sbt setting).
Feel free to give it a shot and provide a pull request 😉 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I really like being able to see the console output and being able to kill the app by just hitting enter but it's super annoying to have to make a request just so that the application actually starts.
Beta Was this translation helpful? Give feedback.
All reactions