Deploy a Rails App with Heroku

It’s easy as pie to push a demo version of your rails app to heroku. Follow the simple steps below and you’ll be on your way to testing in a subdomain of herokuapp.com.

You can also point your dns to heroku and have a live app with a few commands!

heroku login
heroku keys:add
heroku create
# For heroku,
gem 'rails_12factor',  group: :production
git push heroku master
heroku open

# Optional
heroku rename "your-app-name"
heroku run rake db:migrate
heroku logs --tail

# For a set number (500 for example)
heroku logs --num 500
heroku domains:add "name-of-full-url.com"
heroku domains:add "www.name-of-full-url.com"