sbt - devSettings fro playframework 2.4 -
as documentation says:
using run command there couple of special things know configuration when running application run command.
extra devsettings can configure settings run command in build.sbt. these settings won’t used when deploy application.
devsettings := map("play.server.http.port" -> "8080")
https://www.playframework.com/documentation/2.4.x/configuration
but when run activator type error thrown:
error:java hotspot(tm) 64-bit server vm warning: ignoring option maxpermsize=384m; support removed in 8.0 [info] loading project definition /users/carlos/documents/workspace/qrsoft/manager/project /users/carlos/documents/workspace/qrsoft/manager/build.sbt:27: error: not found: value devsettings devsettings := map("play.server.http.port" -> "8080") ^ [error] type error in expression
to use devsettings, you'd need either use playkeys.devsettings, import playkeys._ or import playkeys.devsettings.
to change development mode port, code setting port in framework is:
system.getproperty("https.port") which shows you'd need use -d flag specify port, or create development server using nettyserver specifying port parameter.
Comments
Post a Comment