How to change the http port for play framework 2.4.1?

前端 未结 5 1994
我寻月下人不归
我寻月下人不归 2021-01-14 15:11

I come from a play 1.2.7 application and currently getting started with play framework 2.4.1 and scala. For a start I use the activator web ui to manage applications and the

5条回答
  •  不思量自难忘°
    2021-01-14 15:43

    Through the application.conf in production:

    play.server.http.port = 80
    

    When you run the application with SBT:

    PlayKeys.devSettings := Seq("play.server.http.port" -> "80")
    

    Using run command:

    $ run 80
    

    For more details please refer the below links:

    documentation-Config File

    documentation-Server configuration options

提交回复
热议问题