简体   繁体   English

将RefineryCMS从本地转移到生产

[英]Move RefineryCMS from Local to Production

We decided to try using RefineryCMS for our current project and have run into some issues. 我们决定为当前项目尝试使用RefineryCMS,但遇到了一些问题。 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. 首先,我们尝试使用DreamHost服务器将项目移入生产环境。 There were issues with the images (Refinery uses Dragonfly), where our database dump wasn't brining any images over (or thumbnails). 图像有问题(Refinery使用Dragonfly),我们的数据库转储没有在任何图像上桥接(或缩略图)。

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. 我已经进行了研究,在Google小组中询问过,向人们发送了电子邮件,并在聊天中询问了-目前还没有人回答。

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. 提前致谢。

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. 我已经通过转储数据库并复制public/system在服务器之间成功迁移,因此这是完全可行和直接的。

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). 最初,这些图像既没有在后端也没有在前端显示,但是在停滞了几个小时之后,我意识到问题是我没有在新服务器中安装ImageMagick(巨大的facepalm)。

A quick sudo apt-get install imagemagick solved the issue. 快速sudo apt-get install imagemagick解决了该问题。

Of course, YMMV, but I hope that helps. 当然,是YMMV,但我希望能有所帮助。

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. 我不确定您使用的是什么版本的RefineryCMS或如何配置它,但是除非您选择使用Amazon S3进行上传,否则您的Dragonfly图像和资源将存储在文件系统中。 So in addition to that database dump, you'll probably want to look in the public/system/ folder and copy everything in the images and resources folders up to the server too. 因此,除了该数据库转储之外,您可能还希望查看public/system/文件夹,并将imagesresources文件夹中的所有内容复制到服务器上。

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

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