Closed bdeveloper01 closed 11 years ago
Hi. You've opened an issue under sbt-atmos rather than asking this question on one of the Play forums.
While setting the port in application.conf may not be supported by Play 2, what you can do is configure it in your build using an sbt setting:
playDefaultPort := 8001
Then port 8001
will be used by default with play run
. If you are using sbt-atmos it will also work with atmos:run
.
Hi ! Thanks for your replay!
File : build.sbt
name := "content"
version := "1.0-SNAPSHOT"
playDefaultPort := 8001
libraryDependencies ++= Seq( jdbc, anorm, cache )
play.Project.playScalaSettings
my server still listening : 9000 port
Thanks by! bdeveloper01
If you just want to start Play (2.x) on another port use following command:
play "run 8001"
More information can be found here: http://stackoverflow.com/questions/8205067/how-do-i-change-the-default-port-9000-that-play-uses-when-i-execute-the-run
HTH, Henrik
On Fri, Feb 14, 2014 at 8:04 AM, Balamanikandan T notifications@github.comwrote:
Hi ! Thanks for your replay!
File : build.sbt
name := "content"
version := "1.0-SNAPSHOT"
playDefaultPort := 8001
libraryDependencies ++= Seq( jdbc, anorm, cache )
play.Project.playScalaSettings
[image: output]https://f.cloud.github.com/assets/696503/2170922/237ab85c-9578-11e3-9d51-3f794ccda34e.png
my server still listening : 9000 port
Thanks by! bdeveloper01
Reply to this email directly or view it on GitHubhttps://github.com/sbt/sbt-atmos/issues/17#issuecomment-35081367 .
You just need to change the order of the settings. The playDefaultPort
setting needs to come after play.Project.playScalaSettings
. Otherwise playScalaSettings
sets it to 9000, after you've set it to 8001.
name := "content"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(jdbc, anorm, cache)
play.Project.playScalaSettings
playDefaultPort := 8001
play 2.2.0 con\application.conf file
I would like to change my default port 9000 to 8001 using application.conf
http.port = 8001
This commend only support 1.x not for 2.x
It is possible to change only console like play "run 8001"
I won't be like to give port number for each and every time in console like play "run 8001"
is it possible any other way?
Thanks by! bdeveloper01