I\'m running Ruby 2.5.1 and Rails 5.2.0. I ran rails s -e production, and it gives this error:
rails s -e production
/home/roy/.rbenv/versions/2.5.1/lib/ruby/gems/2.5
Okay I got it working finally.
I simply deleted my master.key and credentials.yml.enc files and then ran
master.key
credentials.yml.enc
bin/rails credentials:edit
Which created new files. After that everything worked fine.
I don't really understand why it works though. Can anyone give a good explanation for this?