Cannot get -Dhttp.port to work in 2.9.0-RC3 #12050
Answered
by
PromanSEW
nilsweinander
asked this question in
Q&A
-
I have just created a new Play project, using 2.9.0-RC3. In previous versions I have used (2.3 and 2.7), I have been able to change the port the app runs on when I start it from IntelliJ, by specifying -Dhttp.port=XXXX in JVM options. In the new 2.9 project this has no effect,. Neither has setting play.server.http.port=XXXX in application.conf, Play uses port 9000 regardless. What am I doing wrong here? |
Beta Was this translation helpful? Give feedback.
Answered by
PromanSEW
Oct 19, 2023
Replies: 1 comment 1 reply
-
If you start app from IDEA, you likely do it in dev mode. In this case you should set port in PlayKeys.devSettings += ("play.server.http.port", "XXXX") |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nilsweinander
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you start app from IDEA, you likely do it in dev mode. In this case you should set port in
build.sbt
: