Rails EOFError (end of file reached) when saving a devise user

后端 未结 5 948
小鲜肉
小鲜肉 2021-01-03 22:46

I\'m getting this error in production when trying to create a user (i\'m using the devise gem).

EOFError (end of file reached):

I hit this

5条回答
  •  盖世英雄少女心
    2021-01-03 23:29

    Here's a working pony gem call.

    Pony.mail({
          :to => 'apotonick@gmail.com',
          subject: "Pony ride",
          body: "Awesome!",
          from: "nick@trb.to", # this MUST be the sending Zoho email.
    
          :via => :smtp,
          :via_options => {
            :address        => 'smtp.zoho.com',
            :port           => '465',
            :enable_starttls_auto => true,
            ssl: true,
            :user_name      => 'nick@trb.to', # MUST be identical to :from.
            :password       => 'yourStrongPw',
            :authentication => :login,
          }
        })
    

提交回复
热议问题