Heroku上的Active Admin无法正常工作

时间:2012-05-08 08:24:31

标签: ruby-on-rails heroku activeadmin

您好我以前有过活动的管理员工作正常但我认为当我尝试合并我的github + heroku存储库时它已经搞砸了。它似乎在本地工作正常,但在Heroku我得到通用我们很抱歉,但出现了错误消息。这是我的heroku日志的输出

  

2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/的ActiveSupport-3.2.3 / LIB / active_support / callbacks.rb:385:在   _run_process_action_callbacks' 2012-05-08T08:20:16+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in __ run_callback' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_controller /金属/ instrumentation.rb:30:在   block in process_action' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:17:in
process_action' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/的ActiveSupport-3.2.3 / LIB / active_support / notifications.rb:123:在   instrument' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in
屏蔽仪器' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/的ActiveSupport-3.2.3 / LIB / active_support /通知/ instrumenter.rb:20:在   instrument' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:205:in
process_action' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_controller /金属/ instrumentation.rb:29:在   process_action' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/railties/controller_runtime.rb:18:in
process_action' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  vendor / bundle / ruby​​ / 1.9.1 / gems / actionpack-3.2.3 / lib / abstract_controller / rendering.rb:45:in process' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:121:in
process' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_controller / metal.rb:203:在   dispatch' 2012-05-08T08:20:16+00:00 heroku[router]: GET myrealtrip.com/admin/login dyno=web.1 queue=0 wait=0ms service=488ms status=500 bytes=643 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/rack_delegation.rb:14:in
调度' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_controller / metal.rb:246:在   block in action' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /路由/ route_set.rb:73:在   dispatch' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:36:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /路由/ mapper.rb:40:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:68:in
阻止通话' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/旅程-1.0.3 / LIB /旅程/ router.rb:56:在   each' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /路由/ route_set.rb:600:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:35:in
阻止通话' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/区长-1.1.1 / LIB /区长/ manager.rb:34:在   catch' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /中间件/ best_standards_support.rb:17:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/etag.rb:23:in
呼叫'   2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/机架1.4.1 / LIB /齿条/ conditionalget.rb:25:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/head.rb:14:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /中间件/ params_parser.rb:21:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/flash.rb:242:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/机架1.4.1 / LIB /齿条/会话/抽象/ id.rb:205:在   context' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/了activerecord-3.2.3 / LIB / active_record / query_cache.rb:在:64   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/cookies.rb:338:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/了activerecord-3.2.3 / LIB / active_record / connection_adapters /抽象/ connection_pool.rb:467:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in
阻止通话' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/的ActiveSupport-3.2.3 / LIB / active_support / callbacks.rb:405:在   __run_callback' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in
_ run_call_callbacks' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/的ActiveSupport-3.2.3 / LIB / active_support / callbacks.rb:405:在   _run__1275827987324005955__call__874682597306149572__callbacks' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in
run_callbacks' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /中间件/ remote_ip.rb:31:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /中间件/ debug_exceptions.rb:16:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/show_exceptions.rb:56:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ railties-3.2.3 / LIB /导轨/齿条/ logger.rb:26:在   call_app' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/logger.rb:16:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ ActionPack的-3.2.3 / LIB / action_dispatch /中间件/ request_id.rb:22:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/机架1.4.1 / LIB /齿条/ runtime.rb:17:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/cache/strategy/local_cache.rb:72:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  vendor / bundle / ruby​​ / 1.9.1 / gems / rack-1.4.1 / lib / rack / lock.rb:15:in call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/static.rb:62:in
call' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/机架缓存1.2 / LIB /齿条/高速缓存/ context.rb:136:在   forward' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in
取' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/机架缓存1.2 / LIB /齿条/高速缓存/ context.rb:185:在   lookup' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in
调用&#39!; 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ railties-3.2.3 / LIB /轨道/ engine.rb:479:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/ railties-3.2.3 / LIB /轨道/ application.rb中:220:在   call' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  供应商/束/红宝石/ 1.9.1 /宝石/机架1.4.1 / LIB /齿条/处理/ webrick.rb:59:在   service' 2012-05-08T08:20:16+00:00 app[web.1]:
vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/log_tailer.rb:14:in
呼叫' 2012-05-08T08:20:16 + 00:00 app [web.1]:
  /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service' 2012-05-08T08:20:16+00:00 app[web.1]:
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
运行'   2012-05-08T08:20:16 + 00:00 app [web.1]:
  /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in`block in   start_thread' 2012-05-08T08:20:16 + 00:00 app [web.1]:   2012-05-08T08:20:16 + 00:00 app [web.1]:2012-05-08T08:20:16 + 00:00   app [web.1]:由ActiveAdmin处理:: Devise :: SessionsController #new   as HTML 2012-05-08T08:20:16 + 00:00 app [web.1]:已呈现   供应商/束/红宝石/ 1.9.1 /捆绑/宝石/ active_admin-ecb9ade65394 /应用/视图/ active_admin /设计/共享/ _links.erb   (1.6ms)2012-05-08T08:20:16 + 00:00 app [web.1]:已呈现   供应商/束/红宝石/ 1.9.1 /捆绑/宝石/ active_admin-ecb9ade65394 /应用/视图/ active_admin /设计/会话/ new.html.erb   在layouts / active_admin_logged_out内(379.1ms)   2012-05-08T08:20:16 + 00:00 app [web.1]:已完成500内部服务器   错误458ms 2012-05-08T08:20:16 + 00:00 heroku [路由器]:GET   myrealtrip.com/favicon.ico dyno = web.1 queue = 0 wait = 0ms service = 5ms   status = 200 bytes = 0 2012-05-08T08:20:20 + 00:00 heroku [router]:GET   www.myrealtrip.com/assets/twit_icon_s.png dyno = web.1 queue = 0 wait = 0ms   service = 7ms status = 200 bytes = 2504 2012-05-08T08:20:20 + 00:00   heroku [路由器]:获取www.myrealtrip.com/assets/fb_icon_s.png dyno = web.1   queue = 0 wait = 0ms service = 8ms status = 200 bytes = 2498   2012-05-08T08:20:20 + 00:00 heroku [路由器]:GET   myrealtrip.com/assets/application.css dyno = web.1 queue = 0 wait = 0ms   service = 12ms status = 200 bytes = 74016 2012-05-08T08:20:21 + 00:00   app [web.1]:2012-05-08T08:20:21 + 00:00 app [web.1]:   2012-05-08T08:20:21 + 00:00 app [web.1]:开始GET" / ko / offers / 16"对于   125.129.240.184 at 2012-05-08 08:20:21 +0000 2012-05-08T08:20:21 + 00:00 app [web.1]:由OffersController处理#show as HTML   2012-05-08T08:20:21 + 00:00 app [web.1]:呈现offer / show.html.erb   在布局/应用程序内(7.8ms)2012-05-08T08:20:21 + 00:00   app [web.1]:参数:{" locale" =>" ko"," id" =>" 16"}   2012-05-08T08:20:21 + 00:00 app [web.1]:已呈现   layouts / _header.html.erb(1.9ms)2012-05-08T08:20:21 + 00:00 app [web.1]:   渲染布局/ _footer.html.erb(0.2ms)2012-05-08T08:20:21 + 00:00   app [web.1]:在18ms完成200 OK(浏览次数:11.4ms | ActiveRecord:   5.3ms)2012-05-08T08:20:21 + 00:00 heroku [路由器]:获取www.myrealtrip.com/ko/offers/16 dyno = web.1队列= 0等待= 0ms   service = 57ms status = 200 bytes = 11374 2012-05-08T08:20:21 + 00:00   heroku [路由器]:获取myrealtrip.com/assets/mrt_logo.png dyno = web.1   queue = 0 wait = 0ms service = 5ms status = 200 bytes = 1985   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/application-e7fd2f7d29fd91d2ef43a8f52446d55e.css   dyno = web.1 queue = 0 wait = 0ms service = 5ms status = 304 bytes = 0   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/application-970c5c7eca4b286b5184e3caddf2b448.js   dyno = web.1 queue = 0 wait = 0ms service = 23ms status = 304 bytes = 0   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/fb_icon_s-41437f3d5d3a5b299e347aa41b1757bc.png   dyno = web.1 queue = 0 wait = 0ms service = 6ms status = 304 bytes = 0   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/twit_icon_s-2a91a32dd31f44cdc2716db595394a4e.png   dyno = web.1 queue = 0 wait = 0ms service = 7ms status = 304 bytes = 0   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/product_icon-de97603b22ca0e28730a4039f538c986.png   dyno = web.1 queue = 0 wait = 0ms service = 5ms status = 304 bytes = 0   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/offer_m_16-c77ea7c8aa397099eba93efd10f2ed0e.jpg   dyno = web.1 queue = 0 wait = 0ms service = 7ms status = 304 bytes = 0   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/guide_icon-0918b097277ab00b11c74d9a29601af1.png   dyno = web.1 queue = 0 wait = 0ms service = 8ms status = 304 bytes = 0   2012-05-08T08:20:21 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/guide_profile_m_10-aae5b6874e3f733c238dde938cc90f09.jpg   dyno = web.1 queue = 0 wait = 0ms service = 6ms status = 304 bytes = 0   2012-05-08T08:20:22 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/assets/mrt_logo.png dyno = web.1 queue = 0 wait = 0ms   service = 5ms status = 304 bytes = 0 2012-05-08T08:20:22 + 00:00   heroku [路由器]:获取www.myrealtrip.com/assets/register_icon.png   dyno = web.1 queue = 0 wait = 0ms service = 13ms status = 200 bytes = 14694   2012-05-08T08:20:23 + 00:00 heroku [路由器]:GET   www.myrealtrip.com/favicon.ico dyno = web.1 queue = 0 wait = 0ms service = 4ms   status = 304 bytes = 0

3 个答案:

答案 0 :(得分:1)

在config / environments / production.rb中修复它.config.assets.compile = true :(

答案 1 :(得分:1)

对此的更新 - heroku提供了一个新的实验性功能,使资产编译更加符合开发环境中的内容。

从您的应用根运行:

heroku labs:enable user-env-compile

您不需要进行上述任何更改,如果您已经进行了更改,则应将其删除。吹捧的另一个修复是将以下内容添加到config / application.rb(再次,你不应该需要这个):

config.assets.initialize_on_precompile = false
config.assets.precompile += %w[active_admin.css active_admin.js print.css]
config.assets.precompile += %w[active_admin/print.css]

在此处阅读更多内容:https://devcenter.heroku.com/articles/labs-user-env-compile

答案 2 :(得分:0)

活跃的管理员在heroku中正常工作..请参阅此http://getinvoice.herokuapp.com/admin .. 这是视图级问题。你应该通过删除一个一个视图解决它...然后很好问题在哪里.........