Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breaking out of Play 'run' in IntelliJ sbt shell

When starting up a Play server in the an IntelliJ project using the sbt shell, you get the prompt:

[IJ]sbt:app> run

--- (Running the application, auto-reloading is enabled) ---

[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Enter to stop and go back to the console...)

However Enter does not stop it and Ctrl-C kills the entire shell, reloading sbt. What is the proper way to exit and return to the sbt prompt?

like image 428
Arne Claassen Avatar asked Jan 29 '23 15:01

Arne Claassen


1 Answers

It appears Ctrl-D terminates the Play server and return control to the sbt shell

like image 121
Arne Claassen Avatar answered Feb 05 '23 15:02

Arne Claassen