Running a rails server in production locally (InvalidMessage error)

前端 未结 5 2113
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 17:10

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         


        
5条回答
  •  一个人的身影
    2020-12-28 17:32

    Okay I got it working finally.

    I simply deleted my master.key and credentials.yml.enc files and then ran

    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?

提交回复
热议问题