sbt-native-packager

How to stop gracefully the actor system for an akka-http server that must be deployed.

十年热恋 提交于 2019-11-30 09:02:18
问题 I just created my first rest server with akka-http. The problem is that I do not know how to deploy the server in such a way that I could gracefully shutdown the actor system. For example I found something here: https://stackoverflow.com/a/17399574/5388513 where you could use Akka's microkernel, but it is deprecated. I tried using sbt-native-package, but I do not know how to gracefully shutdown the actor system. Thank you! 回答1: You can add shutdown hook: // import scala.concurrent.duration._

How to disable ScalaDoc generation in dist task in Play 2.2.x (using project/build.scala)?

…衆ロ難τιáo~ 提交于 2019-11-29 22:54:39
Adding the following settings to the build.sbt file of a Play 2.2.x app does not disable Scaladoc generation. How can it be disabled? play.Project(appName, appVersion, appDependencies) .settings(scalaVersion := "2.10.3") .settings(jsSettings : _*) .settings( publishArtifact in (Compile, packageDoc) := false, publishArtifact in packageDoc := false ) Jacek Laskowski Add the following settings to the Play project: sources in (Compile,doc) := Seq.empty publishArtifact in (Compile, packageDoc) := false With the change it should be as follows: play.Project(appName, appVersion, appDependencies)