2

我的 RoR 应用程序在 heroku 上运行良好,直到我添加了 activeadmin gem,现在当我将它推送到 heroku 时,我得到一个这样的页面:

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

heroku logs 命令只给了我...

2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x515546]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x519499]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_ary_each+0x45) [0x533735]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: [NOTE]
2012-04-14T21:25:32+00:00 app[web.1]: 
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby() [0x51307f]
2012-04-14T21:25:32+00:00 app[web.1]: /usr/local/bin/ruby(rb_yield+0x66) [0x521d56]
2012-04-14T21:25:32+00:00 app[web.1]: 
2012-04-14T21:25:32+00:00 app[web.1]: You may have encountered a bug in the Ruby interpreter or extension libraries.
2012-04-14T21:25:32+00:00 app[web.1]: Bug reports are welcome.
2012-04-14T21:25:32+00:00 app[web.1]: For details: http://www.ruby-lang.org/bugreport.html
2012-04-14T21:25:33+00:00 heroku[web.1]: Process exited with status 139
2012-04-14T21:25:33+00:00 heroku[web.1]: State changed from up to crashed

我不知道从这里去哪里。有谁知道如何让我的本地应用程序(完美运行)在heroku上运行?

谢谢,布拉德

4

1 回答 1

0

我在这里盲目猜测,但是当您安装 Active Admin 时,您需要在推送到 Heroku 后运行迁移。

尝试这样做:

heroku rake db:migrate
于 2012-04-14T21:44:18.510 回答