How do I change the default port 9000 in Play 2.3.x in the build definition?

With Play 2.2.x I can set the default port with the build.sbt ie file:

Build.sbt
  play.Project.playScalaSettings

  play.Project.playDefaultPort := 9001

      

After update 2.3.x play.Project.playDefaultPort

no longer exists.

I do not want to type -Dhttp.port=9001

orrun 9001

+3


source to share


1 answer


play.PlayImport.PlayKeys.playDefaultPort := 9001

      



https://github.com/playframework/playframework/blob/2.3.4/framework/src/sbt-plugin/src/main/scala/PlayImport.scala#L111

+5


source







All Articles