-
Notifications
You must be signed in to change notification settings - Fork 253
Compatibility break with rails 5.2 rc1 #205
Comments
You need to use |
Yes it works. Thanks @mkhanal! |
I think what you actually want is |
@stevepm 's method worked with rails 5.2. |
This For newbies wondering where to put this - Put it here |
I think you're supposed to use $ bin/rails runner 'pp credentials: Rails.application.credentials.secret_key_base, app: Rails.application.secret_key_base, derived: Digest::MD5.hexdigest(Rails.application.class.name)' Here's the relevant code, note that it only uses the credentials file / environment variable when it's in prod: https://github.com/rails/rails/blob/d7f48c9c39befaf23ccd63e0248a3bd5bf295ee5/railties/lib/rails/application.rb#L428-L436 |
Adding |
Since rails 5.2 doesn't generate secret.yml but credentials.yml.enc on rails new command, knock is not able to generate token anymore.
Secret generation is no longer available after app initialization
Tried to configure knock initializer
Patched with manually add secrets.yml to the app/config folder.
Is there a way to configure knock with credentials.yml.enc ?
The text was updated successfully, but these errors were encountered: