gpt4 book ai didi

ruby-on-rails - 将应用程序部署到 Heroku 并获取 "no such file to load -- will_paginate"

转载 作者:行者123 更新时间:2023-12-02 03:33:32 27 4
gpt4 key购买 nike

我正在 Heroku 上运行 Ruby 1.8.6、Rails 1.2 应用程序。我正在使用Aspen stack 。当我尝试部署时,应用程序崩溃了。

这是我在日志中的内容

2012-03-13T08:43:44-07:00 heroku[slugc]: Slug compilation started  
2012-03-13T15:43:49+00:00 heroku[api]: Release v4 created by sunny.lanke@gmail.com
2012-03-13T15:43:49+00:00 heroku[api]: Deploy 5c774a1 by sunny.lanke@gmail.com
2012-03-13T15:43:50+00:00 heroku[web.1]: State changed from created to starting
2012-03-13T08:43:50-07:00 heroku[slugc]: Slug compilation finished
2012-03-13T15:43:52+00:00 heroku[web.1]: Starting process with command `thin -p 14350 -e production -R /home/heroku_rack/heroku.ru start`
2012-03-13T15:43:55+00:00 app[web.1]: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- will_paginate (MissingSourceFile)
2012-03-13T15:43:55+00:00 app[web.1]: from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
2012-03-13T15:43:55+00:00 app[web.1]: from /app/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require'

3:55+00:00 app[web.1]: from /app/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:343:in `new_constants_in'
2012-03-13T15:43:55+00:00 app[web.1]: from /app/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require'
2012-03-13T15:43:55+00:00 app[web.1]: from /app/config/environment.rb:73
2012-03-13T15:43:55+00:00 app[web.1]: from /usr/local/lib/ruby/site_ruby/1.8/rubygems /custom_require.rb:31:in `gem_original_require'
2012-03-13T15:43:55+00:00 app[web.1]: from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
2012-03-13T15:43:55+00:00 app[web.1]: from /usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/rails.rb:31:in `load_application'
2012-03-13T15:43:55+00:00 app[web.1]: ... 12 levels...
2012-03-13T15:43:55+00:00 app[web.1]: from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
2012-03-13T15:43:55+00:00 app[web.1]: from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
2012-03-13T15:43:55+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `new'
2012-03-13T15:43:55+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1
2012-03-13T15:43:56+00:00 heroku[web.1]: Process exited with status 1
2012-03-13T15:43:56+00:00 heroku[web.1]: State changed from starting to crashed
2012-03-13T15:43:56+00:00 heroku[web.1]: State changed from crashed to created
2012-03-13T15:43:56+00:00 heroku[web.1]: State changed from created to starting
2012-03-13T15:43:59+00:00 heroku[web.1]: Starting process with command `thin -p 54230 -e production -R /home/heroku_rack/heroku.ru start` `

编辑:根据建议,我已要求 Heroku 支持人员安装 gem will_paginate。我会随时向大家通报结果。

最佳答案

您缺少 will_paginate gem。

如果 will_paginate 甚至支持 1.8.6,您需要将其添加到您的 .gems list 中。如果您使用 Bundler,请在部署之前将其添加到您的 Gemfile 和 bundle 中。

http://devcenter.heroku.com/articles/gems

关于ruby-on-rails - 将应用程序部署到 Heroku 并获取 "no such file to load -- will_paginate",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9688307/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com