On Apr 15, 2:01 pm, johnnybutler7 <[email protected]> wrote: > Hi, > > I have gem file set up so only the specific gems are installed/needed > for each environment, so all the test gems like cucumber etc are > grou[ed in test. When i try a rake db:migrate RAILS_ENV=staging on > the staging server however i get an error saying XXXX gem is not > installed, please use bundle install. I dont want the test gems > installed on this server however when i run the migration on staging > its expecting them to be installed. > > Anyone hit this problem before and how did you sort it, i cant find > anything in the forums? >
did you run bundle install --without test --without development Some gems (like rspec) used to generate rake files that required rspec to be loaded, so when rails tried to load your rake tasks it would fail if those gems weren't there anymore. They don't anymore though, now that everyone has figured out the sensible ways of working with bundler - I'd try using a current versions of those gems and clearing out any unneeded rake task files. Fred > JB -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

