Refinery-CMS 子 uri

发布于 2024-10-18 23:41:44 字数 248 浏览 1 评论 0原文

我正在尝试设置炼油厂 cms 以在具有子 uri 的 apache/passenger 中工作。但是当我访问网站和管理区域时,我得到了一个奇怪的行为(图像未正确加载,页面无法编辑等)

我想知道是否根本不支持子 uri 或者是否存在某种可用的解决方法

(运行rails 3.0.3和refinery 0.9.9)

我想要这样做的原因是能够在同一服务器/ip端口80上托管多个基于refinery的站点..只需将它们分别放在不同的子乌里。

I'm trying to set up refinery cms to work in a apache/passenger with a sub uri. But when i access the site and admin area, i get a strange behavior (Images aren't loaded correctly, pages can't be edited, etc.)

I was wondering if sub uri are simply not supported or if there is some sort of workaround available

(running rails 3.0.3 and refinery 0.9.9)

The reason i want to do this is to have the capability of hosting multiple refinery based sites on the same server/ip port 80.. simply by putting them each on a different sub uri.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑看君怀她人 2024-10-25 23:41:44

我意识到这是一个非常古老的问题......我正在尝试做同样的事情,并发现了这个问题。

我已经安装了Rails 3.0.11以及refinerycms 1.0.9,并且一些图像损坏了(在Apache/Passenger上)..深入挖掘后我发现CSS中引用的所有图像的位置都很难-编码,我发现这非常烦人..但事实就是如此。显然他们正在努力让 cms 与资产管道一起工作,这将解决这些问题。

同时,您可以在应用程序公共文件夹中覆盖它们;你会在refinery-core gem 中找到大部分CSS。
例如:
rake Refinery:override stylesheet=refinery/refinery
然后打开它安装的覆盖文件,然后用 //images/ 查找替换 /images/ ..这对我有用。

ETA:进行更改后,不要忘记删除 public/refinery/cache 文件夹内容。

I realize this is a really old question... I am trying to do the same, and found this question.

I've installed Rails 3.0.11, along with refinerycms 1.0.9, and some images are broken (on Apache/Passenger).. digging a little deeper I found that the locations of all the images ref'd in CSS are hard-coded, I find this highly annoying.. but it is what it is. Apparently they're working to get the cms working with the asset pipeline, which would fix these issues.

In the meanwhile, you can override them in your applications public folder just fine; you'll find most of the css in the refinery-core gem..
For instance do:
rake refinery:override stylesheet=refinery/refinery
and then open the override file it installed and then do a find-replace of /images/ with //images/ ..That worked for me.

ETA: Don't forget to delete the public/refinery/cache folder contents after making changes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文