I often run a dispatcher server in sbt ~run
.
unfiltered.netty.Http(port)
.handler(plan)
.run()
Http.shutdown()
When I start up my server, it says:
Embedded server running on port 8080. Press any key to stop.
However, only ENTER will stop the server. Unfortunately, ENTER also stops sbt
. How can I set up unfiltered so that it actually stops on any key within sbt
? I would like pressing a key to stop the server and cause sbt
to re-compile and re-run the application.