brew install rbenv
brew install readline
RUBY_CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 2.1.5
gem install bundler
Download Postgres.app.
Configure your path, possibly in ~/.bash_profile
:
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
Install the pg gem:
ARCHFLAGS="-arch x86_64" gem install pg
And install remaining gems:
bundle install
Create databases and users:
CREATE ROLE tfc_development LOGIN ENCRYPTED PASSWORD 'tfc_development'
CREATEDB REPLICATION
VALID UNTIL 'infinity';
CREATE DATABASE tfc_development
WITH ENCODING='UTF8'
OWNER=tfc_development
CONNECTION LIMIT=-1;
CREATE ROLE tfc_test LOGIN ENCRYPTED PASSWORD 'tfc_test'
CREATEDB REPLICATION
VALID UNTIL 'infinity';
CREATE DATABASE tfc_test
WITH ENCODING='UTF8'
OWNER=tfc_test
CONNECTION LIMIT=-1;
bundle exec rails s
git push heroku master