Play framework. no need to compile

前端 未结 3 2009
野性不改
野性不改 2021-02-09 16:07

I was introduced to the Play framework, and one of the amazing things I found about it is that there is no need to compile the project. You only need to save the edited files an

3条回答
  •  耶瑟儿~
    2021-02-09 16:31

    Although you didn't mention which version of Play amazed you so much in simplest words it can be described that way: Play in development mode watches all files that belongs into your app, and in case of any change it recompiles required parts. Therefore DEV should not be used for production - as it is redundant loss of the performance. Otherwise: when you'll start your application in production mode it will avoid immediate recompiling, however it will gain the performance.

    In Play 2 running the application is development mode done with

    play run
    

    or

    play ~run
    

    (first command recompiles code after next page hit, second after next file change)

    Running application in production mode can be done with

    play start
    

提交回复
热议问题