Rails: ActiveSupport::MessageEncryptor::InvalidMessage

前端 未结 5 1216
暗喜
暗喜 2020-12-30 06:35

Help me please, I\'ve finished 11 chapters of the rails tutorial, deployed my app to heroku (locally it worked perfectly) and it crashing all time. I\'m using rails 5.2.2 Af

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 06:59

    1. Remove the credentials:
    rm -rf config/credentials.yml.enc
    
    1. Create a new credentials:
      EDITOR="mate --wait" bin/rails credentials:edit
    

    Hope it's helpful.

提交回复
热议问题