这是indexloc提供的服务,不要输入任何密码
Skip to content

Avoid "WARN a.a.ActorSystemImpl - Dev use only. Free keys at https://akka.io/key" for Akka in dev mode #13142

Answered by mkurz
gervaisb asked this question in Q&A
Discussion options

You must be logged in to vote

To make this work in DEV mode (sbt run), you need to put

PlayKeys.devSettings += "akka.license-key" -> "my-secrect-key"

into build.sbt. Be aware, this is only picked up in dev mode, but not in production. When deploying your application in production, you still need to either set this key in application.conf or supply it to the play app eg. via -D... flag. You can find more details on how to supply configuration to your application in prod mode here: https://www.playframework.com/documentation/2.9.x/ConfigFile

The reason why you need to add this config via PlayKeys.devSettings in dev mode is because a Play app in dev mode works a bit different than when running in Production - in dev mode…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mkurz
Comment options

@gervaisb
Comment options

@ndeverge
Comment options

Answer selected by gervaisb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants