Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. [mememe@app site]# rails db:migrate RAILS_ENV=production
  2. rails aborted!
  3. ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`
  4.  
  5. [mememe@app site]# EDITOR="mate --wait" bin/rails credentials:edit
  6. Adding config/master.key to store the master encryption key: 7b3516f223e08c7eb04813154582be2b
  7.  
  8. Save this in a password manager your team can access.
  9.  
  10. If you lose the key, no one, including you, can access anything encrypted with it.
  11.  
  12. create config/master.key
  13.  
  14. Traceback (most recent call last):
  15. 38: from bin/rails:3:in `<main>'
  16. 37: from bin/rails:3:in `load'
  17. 36: from /app/site/bin/spring:15:in `<top (required)>'
  18. ...
  19. 1: from /usr/local/rvm/gems/ruby-2.5.5/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:183:in `_decrypt'
  20. /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)
  21.  
  22. [mememe@app site]# rails db:migrate RAILS_ENV=production
  23. rails aborted!
  24. ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
  25. /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