问题描述
我使用Sidekiq gem来做一些涉及视频文件的后台处理。在我的本地机器上一切正常,但我得到了上述生产中的错误。我阅读了,果然我会重新启动Heroku,以便可以是问题吗?如果是这样,我不知道如何处理它,因为我的应用的根目录中已经有一个 不胜感激。 您无法在dynos之间共享文件。您需要上传到S3并将S3链接传递到Sidekiq。 I'm using the Sidekiq gem to do some background processing involving video files. On my local machine everything works fine but I'm getting the aforementioned error in production. I read about Heroku's ephemeral filesystem and sure enough I'd restarted Heroku so that could be the problem? If it is I don't know how to deal with it given that there is already a Any help will be greatly appreciated. You cannot share files between dynos. You'll need to upload to S3 and pass the S3 link to Sidekiq. 这篇关于Heroku上的Sidekiq没有这样的文件或目录错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! tmp
文件夹。这是我从工作人员那里得到的确切的错误:
2015-09-09T21:41:37.859890 + 00:00 app [worker .1]:Errno :: ENOENT:没有这样的文件或目录 - /tmp/RackMultipart20150909-3-420sel.mp4
tmp
folder in my app's root directory. This is the exact error I'm getting from my worker:2015-09-09T21:41:37.859890+00:00 app[worker.1]: Errno::ENOENT: No such file or directory - /tmp/RackMultipart20150909-3-420sel.mp4