Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [mememe@app site]# rails db:migrate RAILS_ENV=production
- rails aborted!
- ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
- [mememe@app site]# EDITOR="mate --wait" bin/rails credentials:edit
- Adding config/master.key to store the master encryption key: 7b3516f223e08c7eb04813154582be2b
- Save this in a password manager your team can access.
- If you lose the key, no one, including you, can access anything encrypted with it.
- create config/master.key
- Traceback (most recent call last):
- 38: from bin/rails:3:in `<main>'
- 37: from bin/rails:3:in `load'
- 36: from /app/site/bin/spring:15:in `<top (required)>'
- ...
- 1: from /usr/local/rvm/gems/ruby-2.5.5/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:183:in `_decrypt'
- /usr/local/rvm/gems/ruby-2.5.5/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt': ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage)
- [mememe@app site]# rails db:migrate RAILS_ENV=production
- rails aborted!
- ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
- /usr/local/rvm/gems/ruby-2.5.5/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement