【问题标题】:Rake paperclip:refresh on Heroku - Time out耙回形针:在 Heroku 上刷新 - 超时
【发布时间】:2014-01-29 17:16:12
【问题描述】:

在更改 Paperclip 的某些配置时,我的附件出现问题 -> Paperclip configurations | Old Attachments

答案是:rake paperclip:refresh CLASS=Screen

在本地主机上它工作得很好。但是在部署到 Heroku 和 S3 后,我收到了一个警告,并且 rake 被中止了!

rake aborted!
Your socket connection to the server was not read from or written to within the 
timeout  period. Idle connections will be closed.

AWS::S3::Errors::RequestTimeout Your socket connection to the server was not read 
from or written to within the timeout period. Idle connections will be closed.

我不知道如何解决这个问题,有人知道吗?

【问题讨论】:

    标签: ruby-on-rails heroku ruby-on-rails-4 timeout paperclip


    【解决方案1】:

    您是否尝试过为 AWS 定义区域?我之前在为 AWS 使用欧洲区域但尚未定义它时看到过这一点。

    good article 对此问题进行了深入探讨。值得一试。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-26
    • 2011-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-19
    相关资源
    最近更新 更多