What are we going to do?

  • We're going to get a Rails App online
  • I'll show you how to auto run migrations on deploy
  • You'll learn a little bit more about how Heroku is setup

Deploying Rails To Heroku

Get your app online

What makes Heroku Special?

  • It's cloud infrastructure made easy

What makes Heroku Special?

Single Server with all services on it

What makes Heroku Special?

Single Server with some cloud services

What makes Heroku Special?

Single Server with some cloud services

Let's deploy something

$ rails new . --database=postgresql

Push it to GitHub & setup app.

Add some scaffolding

$ rails g scaffold Pet name:string

Then show off the release tasks

Let me explain! Back in the day we used deploy using Capistrano, and quite everything we needed was on one server. It was terrible. The servers were often poorly configured, and was hard to scale. Quite often servers would run out of storage, or require someone on call to maintain them.

Then we got a bit smarter, and moved things like the Database/Redis/Storage onto their own servers. Then we'd deploy our app to one or many servers. It was better, but we still had to maintain & scale servers.

What Heroku allowed, is really easy way to get away from those servers. They handle it, we just give them the code. This meant we could independently scale parts of our app & not have to worry about the as much.