Excon not recognising my SSL route

岁酱吖の 提交于 2020-01-15 05:06:27

问题


When pushing to Heroku, my db:migrate failed at the following:

!    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)

So, I added the following to the bottom of my production.rb file (my certs at in the root file)

Excon.defaults[:ssl_ca_path] = Rails.root

Same error.

So I then tried the fallback:

Excon.defaults[:ssl_verify_peer] = false

Same error.

I'm stumped, and have been going round in circles for hours. Any ideas?

Thanks in advance

来源:https://stackoverflow.com/questions/17301911/excon-not-recognising-my-ssl-route

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!