Rails 3.1 on Heroku, TLDR Version
Create the app
- If not installed, install PostgreSQL
rails new app_name -T -d=postgresql
cd app_name/
rvm --create --rvmrc 1.9.2@app_name
rvm rvmrc trust
- Edit .Gemfile
bundle install
createuser -P -S -R -d app_name
(no to 'Superuser' and 'Create roles', yes to 'Create databases')
rake db:create
- Create procfile in app root.
foreman start
and check http://0.0.0.0:5000/
Push to Github
- Edit .gitignore
git flow init
git add .
git commit -m 'Project skeleton'
- Create app_name on Github
git remote add origin git@github.com:JohnPlummer/app_name.git
git push -u origin develop
git push -u origin master
Push to Heroku
heroku create app-name --stack cedar
git flow release start '0.0.1'
git flow release finish '0.0.1'
git push --all
git push heroku master
heroku run rake db:seed
heroku open