RefineryCMS主页的路线不起作用 [英] RefineryCMS routes for Home page doesn't work

查看:194
本文介绍了RefineryCMS主页的路线不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚开始使用RefineryCMS,对于新手问题感到抱歉。它在本地运行良好,幸运地部署在Heroku Cedar堆栈上。创建了一个名为Home的页面。 / pages / home回复正常。

routes.rb

  root:to => 'pages#home'

可在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]错过
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]:在2012-04-03 02:20:04 +0000
开始GET/for 80.98.142.244 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


解决方案

我最近在myocal工作区尝试炼油厂,并且有一个simila问题。不知道在heroku上有什么不同,因为我没有尝试过任何东西。此解决方案适用于我。



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


just started with RefineryCMS, sorry for newbie question. It runs fine locally and deployed luckily on Heroku Cedar stack. Created a page called Home. /pages/home responds fine.

routes.rb

root :to => 'pages#home'

and works on localhost:3000 but on Heroku it gives error.

The app is here:

http://refkocedar.herokuapp.com/home works http://refkocedar.herokuapp.com/ does not work

How to set Home page to root on Heroku? Thanks for help!

$ heroku logs

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

解决方案

I was trying Refinery recently on myocal workspace and had a similar issue. Not sure what is different on heroku as I didnt try anything on it. This solution worked for me.

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

这篇关于RefineryCMS主页的路线不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆