Running a rails server in production locally (InvalidMessage error)
问题 I'm running Ruby 2.5.1 and Rails 5.2.0. I ran rails s -e production , and it gives this error: /home/roy/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:206:in `rescue in_decrypt': ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage) How do I do this properly? EDIT: The same error appears whenever I try to edit the credentials file using EDITOR="nano --wait" bin/rails credentials:edit Also