将 RefineryCMS 从本地迁移到生产环境
我们决定尝试在当前项目中使用 RefineryCMS,但遇到了一些问题。 我们在本地开发环境中开始该项目。截止日期很快就到了。起初,我们尝试使用 DreamHost 服务器将项目投入生产。图像存在问题(Refinery 使用 Dragonfly),我们的数据库转储没有包含任何图像(或缩略图)。
我们已经耗尽了我们的资源,但仍然找不到解决问题的方法。我做了研究,在谷歌群组中询问,给人们发电子邮件,并在聊天中询问 - 还没有人回答。
那么,这里有人知道将项目从本地开发环境转移到生产环境的最佳解决方案是什么吗?
我确信我不是唯一遇到此问题的人...
提前致谢。
We decided to try using RefineryCMS for our current project and have run into some issues.
We began the project in a local development environment. The deadline is very quickly approaching. At first, we tried to move the project into production using a DreamHost server. There were issues with the images (Refinery uses Dragonfly), where our database dump wasn't brining any images over (or thumbnails).
We have exhausted our resources and still can't find a solution to our problem. I've done research, asked in the Google group, emailed people, and asked in the chat - no one has answered yet.
So, does anyone here have any idea what is the best solution for moving a project over from a local development environment to production?
I am sure I can't be the only person who has run into this issue...
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果有人遇到同样的情况(就像我一样),我的两分钱:
我已经通过转储数据库和复制
public/system
成功地在服务器之间迁移,所以这是完全可行且简单的。起初,图像在后端和前端都没有显示,但在卡住几个小时后,我意识到问题是我没有在新服务器中安装 ImageMagick(巨大的facepalm)。
快速
sudo apt-get install imagemagick
解决了这个问题。当然,YMMV,但我希望有所帮助。
In case someone arrives here with this same situation (as I did), my two cents:
I've successfully migrated between servers by dumping the database and copying
public/system
, so this is perfectly feasible and straightforward.At first the images were not showing neither in the backend nor in the frontend, but after a couple of hours stuck I realized the problem was that I hadn't installed ImageMagick in the new server (huge facepalm).
A quick
sudo apt-get install imagemagick
solved the issue.Of course, YMMV, but I hope that helps.
我不确定您使用的是哪个版本的 RefineryCMS,或者如何配置它,但除非您选择使用 Amazon S3 进行上传,否则您的 Dragonfly 图像和资源将存储在文件系统上。因此,除了数据库转储之外,您可能还需要查看
public/system/
文件夹并复制images
和resources
中的所有内容> 文件夹也上传到服务器。I'm not sure what version of RefineryCMS you are using, or how you configured it, but unless you chose to use Amazon S3 for uploads then your Dragonfly images and resources are being stored on the file system. So in addition to that database dump, you'll probably want to look in the
public/system/
folder and copy everything in theimages
andresources
folders up to the server too.