gustavgans
gustavgans

Reputation: 5191

tips for installing postgres for a rails project on a linux box

I want to use a postgres database for 2 rails projects and for some php blogs. Does anybody have tips for me, which pg gem I should install for ruby? I'm searching also for some general postgres config tips.

I run Ubuntu 9.04 as Server.

Maybe a (not outdated) good tutorial would be great :)

thanks guys

Upvotes: 2

Views: 859

Answers (2)

Simone Carletti
Simone Carletti

Reputation: 176552

This article from the Rails wiki should contain the information you are looking for.

I suggest you to install the pg GEM:

gem install pg

Also, Slicehost published a really interesting collection of article about using and configuring PostgreSQL on Ubuntu: http://articles.slicehost.com/postgresql

Upvotes: 2

Reuben Mallaby
Reuben Mallaby

Reputation: 5767

gem to install is ruby-pg

Tutorial for 8.04

Tutorial for 9.04 LAMP with Postgres

Upvotes: 1

Related Questions