Tuesday, January 5, 2016

Installing Postgres on Ubuntu

Heroku uses Postgres for their database so it is quite nice to use it as the database for your Rails app. That way there is a seamless transition.

Postgres Command Cheat sheet

This site is helpful if you are a Mac user and can $ `brew install`:
http://www.jackiejohnston.us/blog/setting-up-user-authentication-with-devise/

https://www.codefellows.org/blog/three-battle-tested-ways-to-install-postgresql

http://postgresapp.com/documentation/configuration-ruby.html


I decided to install Postgres it my Ubuntu ThinkPad.


How To Install and Use PostgreSQL on Ubuntu 14.04  https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04

Digital Ocean has great documentation.

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib


How To Setup Ruby on Rails with Postgres  https://www.digitalocean.com/community/tutorials/how-to-setup-ruby-on-rails-with-postgres

No comments:

Post a Comment