我的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上工作?
感谢, 布拉德
答案 0 :(得分:0)
我在这里盲目猜测,但是当您安装Active Admin时,您需要在推送到Heroku后运行迁移。
尝试这样做:
heroku rake db:migrate