Running a rails server in production locally (InvalidMessage error)

前端 未结 5 2112
隐瞒了意图╮
隐瞒了意图╮ 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:36

    For Rails 6, I had a multi-environment credentials setup.

    One for development, staging, and production.

    The master.key works for the main credentials.yml file

    The other environments have there own key, so for staging we used the production.key in place of the RAILS_MASTER_KEY config envs on heroku and that fixed it for me.

提交回复
热议问题