Heroku - I do not want to install postgres locally!

Maybe I missed something obvious here, but I'm developing an application that we want to run on the hero so far. I am using mysql. I do not have or not to install postgres on my machine here.

I have this in my gemfile:

gem 'mysql2', '~>0.2.6', :group => :development gem "pg", :group => :production 

However, when I install the package on my local machine - in development - I see this:

 Installing pg (0.11.0) with native extensions /Users/smyp/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/installer.rb:533:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /Users/smyp/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** 

This is what I would expect, since I don't have postgres locally ... but why is he trying to install it ?! Doesn't that defeat the purpose of the groups?

+4
source share
1 answer

Use bundle install --without production

+16
source

All Articles