简体   繁体   English

RefineryCMS图像上传无法在生产环境中使用

[英]RefineryCMS images upload not working in production

I've got a website running on RefineryCMS for some time already. 我已经有一个网站在RefineryCMS上运行了一段时间。 However there's one thing I cannot figure out. 但是,有一件事我无法弄清楚。 Images uploaded via CMS do not work in the production environment. 通过CMS上传的图像在生产环境中不起作用。 It works fine in development on my local machine, but in production on the server it does not work. 在我的本地计算机上进行开发时,它工作正常,但是在服务器上的生产中,则无法正常工作。

This issue has been discussed before but none of the solutions I found helped to resolve my issue. 之前已经讨论过此问题,但是我发现的解决方案都无法解决该问题。

The image is uploaded to the public folder correctly, I can find it when I enter the path of folders and name of the image itself to the browser. 该图像已正确上传到公用文件夹,当我输入文件夹路径和浏览器的图像名称时,可以找到该图像。 The image is there, but it seems the app cannot decode the hashed URL that is generated for the image. 该图像在那里,但是似乎该应用无法解码为该图像生成的哈希URL。

The app is running on a custom VPS on digitalocean with Ubuntu, nginx and passenger. 该应用程序在带有Ubuntu,nginx和passenger的digitalocean上的自定义VPS上运行。 I'm deploying via capistrano if that matters. 如果重要的话,我正在通过capistrano进行部署。

Thank you for any help. 感谢您的任何帮助。

Probably figured this out by now but I just ran into the same issue and realized I hadn't installed imagemagick yet. 可能现在已经知道了,但是我遇到了同样的问题,意识到我还没有安装imagemagick。

For some reason I was thinking that came standard now on Ubuntu but it isn't. 由于某种原因,我当时认为这在Ubuntu上已经成为标准,但事实并非如此。

$ sudo apt-get install imagemagick

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM