sql >> Base de Datos >  >> RDS >> PostgreSQL

Rails 3.1 - Empujando a Heroku - ¿Errores al instalar el adaptador postgres?

Opción 1:

Añadir pg a su Gemfile pero evita intentar instalarlo localmente.

$ cat Gemfile
...
group :production do
  # gems specifically for Heroku go here
  gem "pg"
end

# Skip attempting to install the pg gem
$ bundle install --without production

Opción 2 (Debian/Ubuntu):

Añadir pg a su Gemfile pero primero instale los requisitos previos.

$ cat Gemfile
...
group :production do
  # gems specifically for Heroku go here
  gem "pg"
end

# Install the pg gem's dependencies first
$ sudo apt-get install libpq-dev
# Then install the pg gem along with all the other gems
$ bundle install