LoginSignup
1
0

More than 3 years have passed since last update.

application seacret を生成する

Posted at

playのアプリケーションのデプロイ方法を調べていると、seacret keyを設定しろと書かれていた。

[参考]https://www.playframework.com/documentation/2.7.x/Deploying

生成方法がわからなかったのでメモしておく。

環境

sbt: 1.2.8
play framework: 2.7.3

やり方

下記のコマンドで seacret key を生成できる模様。

$ sbt playGenerateSecret

設定箇所

conf/production.conf に追記(なければ生成する, application.confでもよい)

play.http.secret.key="上記のコマンドで生成したseacret key"

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0