【发布时间】:2012-04-03 02:21:24
【问题描述】:
刚开始使用 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] 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
【问题讨论】:
-
你能运行
heroku logs看看错误是什么吗? -
好的,忘记了,谢谢,刚刚添加
标签: ruby-on-rails-3 heroku routes refinerycms cedar