Andressa

Joined

30 Experience
0 Lessons Completed
0 Questions Solved

Activity

This seems like what happened to me when I was trying to deploy on Heroku, it was working fine locally:

  • The credentials are not being loaded because the decryption of the production.yml.emc is failing.

The fix for me was setting the heroku env RAILS_MASTER_KEY and setting its value to the value of production.key

Hope it helps

For that, I just added validates to my user model, like that:

class User < ApplicationRecord
  has_secure_password

  validates :email, presence: true, format: {
    with: URI::MailTo::EMAIL_REGEXP,
    message: 'invalid email address provided'
  }

  validates :password, presence: true
end

Thanks for that!