« »
11/29/2013

How to change Play framework default development port once and for all

The following trick will only work in developpment env., to change the default port in production use -Dhttp.port=9001 instead.
import sbt._
import Keys._
import play.Project._
object ApplicationBuild extends Build {
System.setProperty("http.port", "9001")
// this setting can be overriden with `play "run 9002"`
// ...
}
view raw Build.scala hosted with ❤ by GitHub
« »
 
 
Made with on a hot august night from an airplane the 19th of March 2017.