me.at.coding
me.at.coding

Reputation: 17724

Play 2 framework stop server

I am starting my Play 2.0.4 project using the play console and

~run

It then displays

(Server started, use Ctrl+D to stop and go back to the console...)

However, when pressing Ctrl+D nothing happens, the server does not stop. I am on Windows 7. Any workaround for this except for stopping the complete play console / cmd.exe?

Upvotes: 4

Views: 1577

Answers (2)

wei
wei

Reputation: 213

Press Enter right after Ctrl-D

Upvotes: 0

Lysann Tranvouez
Lysann Tranvouez

Reputation: 946

It is waiting for the End-of-file character. On Unix terminals this is inserted by typing Ctrl-D. On Windows, Ctrl-Z should work. Although I have experienced situations where it didn't.

Upvotes: 6

Related Questions