sunny31
sunny31

Reputation: 91

Deploying an application to Heroku and getting "no such file to load -- will_paginate"

I am running a Ruby 1.8.6, Rails 1.2 application on Heroku. I am using the Aspen stack. When I attempt to deploy, the app crashes.

Here is what I have in the log

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 [email protected]  
2012-03-13T15:43:49+00:00 heroku[api]: Deploy 5c774a1 by [email protected]  
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`  `  

EDIT: As per the suggestion, I have asked Heroku support to install the gem will_paginate. I will keep you guys posted about the result.

Upvotes: 3

Views: 1267

Answers (1)

Neil Middleton
Neil Middleton

Reputation: 22238

You're missing the will_paginate gem.

If will_paginate even supports 1.8.6 you need to add it your .gems manifest. If you're using Bundler, add it to your Gemfile and bundle before deploying.

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

Upvotes: 1

Related Questions