在过去的10年里,我们的网站已经成功运行了。这是一个基于rails的应用程序。在此过程中,我们将rails升级到4.2版本。进一步升级到rails 5将需要付出努力。
主要的问题是我们使用的回形针已经到了生命的尽头。我们希望至少使用shrine 3.0并替换回形针。我已经看到了机架2.0的依赖性,我们使用的机架少于2.0。我的主要问题是,您的工具包shrine 3.0是否支持在rails 4.2上工作。我们还有shrine lambda插件,它支持2.6版本。这是使用旧版本和后台接地插件。
Our use case
- Use shrine > = 3.0
- Use direct multipart s3 upload
- Some plugin to use the lambda on aws我们的进展
- We have tweaked your demo app (with uppy direct multipart upload) in rails 6.0 to work in rails 5.0
- We have created a thumbnail creator in node.js in 8 runtime.
- We have hosted this lambda function in aws this responds to bucket events. This is probably a crude method as it just catches bucket event and creates thumbnail.
There is no connection with the upload app. Initially intended to use the shrine lambda plugin but this plugin (https://github.com/texpert/shrine-lambda) is for older version of shrine. If this plugin could be upgraded to wok with shrine 3.0 then this would be great.
work with the shrine 3.0 我们的主要问题--是否可以在rails 4.2中使用shrine 3.0?因此我们可以立即替换回形针-使用AWS lambda函数的uppy多部分直接上传的组合。好处是-从服务器卸载图像上传。-将创建缩略图的工作卸载到AWS。
发布于 2020-04-22 01:02:47
我在Rails 4.2.11.1应用程序中使用Shrine 3.2.1,机架为1.6.13。似乎工作得很好。
https://stackoverflow.com/questions/59542879
复制相似问题