Project

General

Profile

RAILS_ENV=production rake db:migrate

Added by afatac -- about 12 years ago

Hi,

Currently I am trying to install Redmine 2.0.3 in Ruby 1.9.2, Rails 3.2.6 and RubyGems 1.8.24. RVM is used.

When I execute RAILS_ENV=production rake db:migrate, I get this error message

Could not find pg-0.14.0 in any of the sources
Run `bundle install` to install missing gems.

I used bundle install --without test development postgresql sqlite to install the gems. So obviously pg-0.14.0 is not installed.

What puzzles me is that in the database.yml, I define mysql2 connector for the production environment. So why is pg-0.14.0 required? Is there any misconfiguration somewhere?


Replies (1)

RE: RAILS_ENV=production rake db:migrate - Added by Leo L. about 12 years ago

Hi,

I had the same error at the beggining...
I don't know why it's still trying to install it if you specified without pg..
But you can check into the "Gemfile" (located in redmine root's directory), edit it and comment out the lines concerning pg.
It worked fine for me then.

    (1-1/1)