Breaking out of Play 'run' in IntelliJ sbt shell
Asked Answered
K

1

5

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?

Karsten answered 22/2, 2018 at 6:25 Comment(0)
K
9

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

Karsten answered 1/3, 2018 at 19:18 Comment(2)
This didn't work for me using 'runProd'. Even startup says "(Starting server. Type Ctrl+D to exit logs, the server will remain in background)"Carchemish
this didn't works for me, ^+D is attach to debugger.Colostrum

© 2022 - 2024 — McMap. All rights reserved.