我正在 Heroku 上部署一个使用 Play Framework 开发的 Web 应用程序。 部署失败返回此错误:
[error] p.a.l.c.CryptoConfigParser - The application secret has not been set, and we are in prod mode. Your application is not secure.
“我们处于生产模式”是什么意思?在哪里设置模式?我必须更改它,因为它不是生产环境。
谢谢
最佳答案
把它放到你的 conf/application.conf 中
Play 2.5
play.crypto.secret="changethissosomethingsecret"
Play 2.6+
play.http.secret.key="changethissosomethingsecret"
You can also start your application with a source with a secret key as a parameter.
关于java - Play 框架部署失败 : "the application secret has not been set, and we are in prod mode. Your application is not secure",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39616119/