Heroku Log:
2018-03-08T00:11:10.222254+00:00 app[web.1]: - F, [2018-03-08T00:11:10.222159 #4] FATAL -- : [ea17d638-5c00-4d47-b3e9-385b4721372e]
2018-03-08T00:11:10.222317+00:00 app[web.1]: - F, [2018-03-08T00:11:10.222237 #4] FATAL -- : [ea17d638-5c00-4d47-b3e9-385b4721372e] OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):
2018-03-08T00:11:10.222367+00:00 app[web.1]: - F, [2018-03-08T00:11:10.222301 #4] FATAL -- : [ea17d638-5c00-4d47-b3e9-385b4721372e]
2018-03-08T00:11:10.222453+00:00 app[web.1]: - F, [2018-03-08T00:11:10.222373 #4] FATAL -- : [ea17d638-5c00-4d47-b3e9-385b4721372e] app/controllers/posts_controller.rb:10:in `index'
后置控制器索引(第10行位于"否则为#34;):
def index
current_user_ip = remote_ip
if current_user_ip == 'xx.xx.xx.xxx'
current_user_coords = [42.4257, -83.0437]
else
current_user_coords = Geocoder.coordinates(current_user_ip)
end
@posts = Post.near(current_user_coords, 100000, :order => false)
end
就像我说最近在Heroku上完美运行一样。今天在github上它说要更新一颗宝石,所以我做到了。这是我做过的唯一改变。在gem更新之前,我不确定是否已被破坏。我可以给出任何想法或更多信息吗?