Skip to content

rails-assets.sh failing due to missing RAILS_MASTER_KEY #22

@MSchmidt

Description

@MSchmidt

When using encrypted secrets on a Rails 5.1 app, deployment fails with this message:

Rails::Secrets::MissingKeyError: Missing encryption key to decrypt secrets with. Ask your team for your master key and put it in ENV["RAILS_MASTER_KEY"]

I have RAILS_MASTER_KEY configured as environment variable but it's not picked up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions