Greetings :)

Hi, I'm Louis!
I like to code, but I don't do enough of it.

This blog is about trying my best to keep up with the ever evolving stream of technology.

Saturday, March 10, 2012

Setting up postgres on ubuntu, and getting it going on heroku

links: https://help.ubuntu.com/community/PostgreSQL,

sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-all

#Create a user account for postgresql, and a database with the name of your user account
sudo -u postgres createuser --superuser myUbuntuUsername
sudo -u postgres psql
postgres=# \password myUbuntuUsername
\q
createdb myUbuntuUsername

#Check that your postgres useraccount was setup properly
psql
\du 

Use require
'dm-core'
instead of
require 'datamapper'
http://devcenter.heroku.com/articles/database

Keep test and production gems separate:
http://yehudakatz.com/2010/05/09/the-how-and-why-of-bundler-groups/

No comments:

Post a Comment