Tag: excon

Excon无法识别我的SSL路由

当推送到Heroku时,我的db:migrate在以下情况下失败: ! Heroku client internal error. Error: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, or `Excon.defaults[:ssl_verify_peer] = false` (less secure). (Excon::Errors::SocketError) 所以,我将以下内容添加到我的production.rb文件的底部(我的证书在根文件中) Excon.defaults[:ssl_ca_path] = Rails.root 同样的错误。 所以我接着尝试了后备: Excon.defaults[:ssl_verify_peer] = false 同样的错误。 我很难过,并且已经绕圈数小时了。 有任何想法吗? 提前致谢