base/src/sqwl/cms/Server.scala
changeset 14 7c4b05467630
parent 13 216da61215db
child 32 2d14f02ba3bd
--- a/base/src/sqwl/cms/Server.scala	Thu Dec 06 16:18:26 2018 +0100
+++ b/base/src/sqwl/cms/Server.scala	Thu Dec 06 17:01:32 2018 +0100
@@ -55,8 +55,10 @@
   }
 
   Http().bindAndHandle(routes, http.interface, http.port)
-  system.log.info("Click `Enter` to close application...")
-  StdIn.readLine()
-  system.terminate()
+  if (run.mode == "devel") {
+    system.log.info("Click `Enter` to close application...")
+    StdIn.readLine()
+    system.terminate()
+  }
 
 }