問題描述:Playframework項目activator start啓動後會自動中止app
解決步驟:ui
1.在conf/application.conf文件添加:application.secret="staging"this
2.啓動是使用簽名:activator start -Dapplication.secret="staging"spa
官網描述段落:
code
Before you run your application in production mode, you need to generate an application secret. To read more about how to do this, see Configuring the application secret. In the examples below, you will see the use of -Dapplication.secret=abcdefghijk
.server
You must generate your own secret to use here.get
The easiest way to start an application in production mode is to use the start
command from the Play console. This requires a Play installation on the server.io
[my-first-app] $ start -Dapplication.secret=abcdefghijk