Which activator command generates application secret?

I am using Play Framework 2.3.6 . Since the Play 2.3.x play commands are replaced by activator commands. Play the documentation for 2.3.x , as well as the last 2.4.x mentions the commands play-generate-secret and play-update-secret , but I can not find the corresponding activator .

We cannot use these secrets for the production environment, but we would like to play in order to generate secrets for integration and predefined environments that we can often change.

Has anyone done this before? What are the right activator commands?

+5
source share
2 answers

AND

 activator play-generate-secret 

and

 activator play-update-secret 

works well for activator.

You can find their definition here in the sources . And, as you can see, they are part of Play, not Activator.

 val generateSecret = TaskKey[String]("play-generate-secret", "Generate a new application secret", KeyRanks.BTask) val updateSecret = TaskKey[File]("play-update-secret", "Update the application conf to generate an application secret", KeyRanks.BTask) 
+7
source

As noted in a comment by @john, this

 activator playGenerateSecret 

from game 2.4 onwards.

+3
source

Source: https://habr.com/ru/post/1207807/


All Articles