rails_admin继续在heroku中循环加载资源

时间:2014-06-30 21:46:53

标签: ruby-on-rails heroku assets rails-admin

我在heroku上部署了一个rails 4应用程序,显示以下错误:

2014-06-30T21:41:49.904494+00:00 app[web.1]:   CACHE (0.0ms)  SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.909372+00:00 app[web.1]:   CACHE (0.0ms)  SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.909380+00:00 app[web.1]:   CACHE (0.0ms)  SELECT COUNT(*) FROM "profiles"
2014-06-30T21:41:49.914865+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_filtering_multiselect.html.haml (11.8ms)
2014-06-30T21:41:49.914875+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_filtering_multiselect.html.haml (11.8ms)
2014-06-30T21:41:49.677490+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (4.4ms)
2014-06-30T21:41:49.888037+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (2.7ms)
2014-06-30T21:41:50.330339+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (6.1ms)
2014-06-30T21:41:50.330358+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/rails_admin-0.6.2/app/views/rails_admin/main/_form_field.html.haml (6.1ms)

每个资产文件rails_admin都需要导致无限循环,并且:

2014-06-30T21:41:38.404015+00:00 heroku[web.1]: Process running mem=2540M(496.1%)
2014-06-30T21:41:38.404374+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

我尝试过使用多个dynos并在application.rb中应用somo配置

# config/application.rb

config.assets.precompile += ['rails_admin/rails_admin.css', 'rails_admin/rails_admin.js']
config.assets.initialize_on_precompile = false

0 个答案:

没有答案