主页的RefineryCMS路由不起作用

Yog*_*oli 3 routes heroku refinerycms ruby-on-rails-3 cedar

刚开始使用RefineryCMS,抱歉新手问题.它本地运行良好,幸运地部署在Heroku Cedar堆栈上.创建了一个名为Home的页面./ pages/home响应很好.

的routes.rb

root :to => 'pages#home'
Run Code Online (Sandbox Code Playgroud)

并在localhost:3000上工作,但在Heroku上它会出错.

该应用程序在这里:

http://refkocedar.herokuapp.com/home的工作原理 http://refkocedar.herokuapp.com/不起作用

如何在Heroku上将主页设置为root?感谢帮助!

$ heroku日志

2012-04-03T02:19:57+00:00 heroku[router]: GET refkocedar.herokuapp.com/assets/application-ddce3db0fc667014faf95d85d24c71d4.js dyno=web.1 queue=0 wait=0ms service=4ms status=304 bytes=0
2012-04-03T02:19:58+00:00 heroku[router]: GET refkocedar.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=4ms status=304 bytes=0
2012-04-03T02:19:58+00:00 app[web.1]: cache: [GET /favicon.ico] miss
2012-04-03T02:20:04+00:00 app[web.1]: 
2012-04-03T02:20:04+00:00 app[web.1]: 
2012-04-03T02:20:04+00:00 app[web.1]: Started GET "/" for 80.98.142.244 at 2012-04-03 02:20:04 +0000
2012-04-03T02:20:04+00:00 app[web.1]: cache: [GET /] miss
2012-04-03T02:20:04+00:00 app[web.1]: cache: [GET /] miss
2012-04-03T02:20:04+00:00 app[web.1]: cache: [GET /] miss
Run Code Online (Sandbox Code Playgroud)

Pra*_*nth 8

我最近在myocal工作区尝试了Refinery并遇到了类似的问题.不知道heroku有什么不同,因为我没有尝试任何东西.这个解决方案对我有用.

http://groups.google.com/group/refinery-cms/browse_thread/thread/504b72ec2f1575d5


Sel*_*ani 5

Refinery admin page you have a option as "forward this page" under advanced options. Set "/"

在这里,我将逐步解释如何将您的家设置为root_path(localhost:3000).

http://localhost:3000/refinery/login

然后用你username和你的身份登录password.

2.点击进入 Pages

3. edit点击链接localhost:3000加载时要查看的页面.

4.Click Advanced Options

5. /Forward this page to another website or page文本框中设置.然后点击Save

6.现在您的主页将显示 localhost:3000