Play Framework provides Run Hooks that can be used to “hook” into Play’s dev mode, for example to start additional processes. In my case, I’d like to use it to serve React UI when Play is running, in a setup similar to this one.
However, the hooks do not seem to be executed with
runAll in a Lagom environment. So if my Play app is a gateway in my Lagom project, when I execute
runAll, the Play app is executed without its hooks.
Is there a way to:
- use PlayRunHook for a Play project executed with Lagom’s
- or use hooks directly in Lagom’s