Rails app works locally, crashes on Heroku?

I think the problem might be in this line: app/. Bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies. Rb:306:in `depend_on': No such file to load -- spec_helper (LoadError) It seems that one of your initializers has require "spec_helper in it (or loads a file elsewhere that does the same) and shouldn't.

This might have to do with gems in your Gemfile that are in the :test group that don't get loaded by default on Heroku You might try running bundle install --without test development locally to reproduce how Heroku is installing the gems. Note that this will be the permanent way that bundle installs gems until you delete the bundle/config file from your project, so you will want to do that afterwards once you've figured things out Hope this helps.

I think the problem might be in this line: /app/. Bundle/gems/ruby/1.8/gems/activesupport-3.1.0/lib/active_support/dependencies. Rb:306:in `depend_on': No such file to load -- spec_helper (LoadError) It seems that one of your initializers has require "spec_helper" in it (or loads a file elsewhere that does the same) and shouldn't.

This might have to do with gems in your Gemfile that are in the :test group that don't get loaded by default on Heroku. You might try running bundle install --without test development locally to reproduce how Heroku is installing the gems. Note that this will be the permanent way that bundle installs gems until you delete the .

/. Bundle/config file from your project, so you will want to do that afterwards once you've figured things out. Hope this helps...

I couldn't find a file with require "spec_helper" in any of the initializers :(. I did bundle install --without test development and no errors occured. – Kyle Sep 18 at 23:37 the app ran locally, but still fails on heroku – Kyle Sep 19 at 0:04 @Kyle after you did that.

You should execute your commands (such as rails s, rails c, rake something) by prefixing them with bundle exec.In this way you're fully reproducing the heroku env. Otherwise your commands still see the "uninstalled" gems. – Fabio Sep 19 at 0:29 I did and the errors from heroku didn't occur on my machine.

– Kyle Sep 19 at 0:40 I added the full heroku logs, maybe that will help – Kyle Sep 19 at 0:48.

I had the same thing. Turns out during development a spec had somehow gotten copied up into into the controllers folder. Didn't have any affect locally, but crashed cedar...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions