我刚刚将我的 RoR 应用程序部署到 Heroku,该应用程序可以在我的本地端口上运行,但是当我访问 Heroku 地址时,我得到:
App crashed This application is temporarily offline. If you're the administrator of this app, please check your heroku logs for the backtrace.
这可能是我在日志中发现的错误:
2011-02-25T17:08:25-08:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-warrior-452.heroku.com/ dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-02-25T17:08:25-08:00 heroku[router]: Error H10 (App crashed) -> GET afternoon-warrior-452.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
我该如何解决这个问题?
最佳答案
<支持> 我的猜测是您忘记设置生产数据库。也许……
$ heroku rake db:setup
或 $ heroku rake db:push
...需要吗?
更新:啊哈!根据评论中的错误消息,您在 application_helper.rb.
中有 Unresolved 合并冲突这就是那些 <<<<<<
lines 是由 git(或者你正在使用的一些本地 SCCS)插入的东西,通常指出分支和本地更改之间的冲突。
从“git status”开始,也只看application_helper.rb
在你的编辑器中。
关于ruby-on-rails - Heroku 应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5124272/