Skip to content

Instantly share code, notes, and snippets.

@mdang
Last active April 25, 2017 13:46
Show Gist options
  • Select an option

  • Save mdang/53b6c9554c871096eef1 to your computer and use it in GitHub Desktop.

Select an option

Save mdang/53b6c9554c871096eef1 to your computer and use it in GitHub Desktop.
Deploying a backend app to Heroku

Deploying a Rails app to Heroku

Learning Objectives

  • Why do we need to deploy our code?
  • Explain the difference between PaaS and IaaS
  • Deploy an app to Heroku
  • Run a Heroku app locally
  • Set up a remote database
  • Configure a remote server

Why do we need to deploy?

  • Some people are still getting confused as to why databases local to their machine can't be accessed by others, why we seed data, etc
  • Difference b/w Heroku and Bit Ballooon

What is Heroku and why are we using it?

Discuss PaaS - Platform as a Service as compared to IaaS like Amazon EC2, etc

IaaS gives you components you need in order to build things on top of it; PaaS gives you an environment where you just push code and some basic configuration and get a running application. IaaS can give you more power and flexibility, at the cost of having to build and maintain more yourself.

Creating an account

https://dashboard.heroku.com

Deploying a Ruby app in Heroku

Walk through tutorial:

https://devcenter.heroku.com/articles/getting-started-with-ruby

Warnings about costs

  • There are a lot of advantages of being able to scale but be mindful of the costs
  • Add-ons can unexpectedly skyrocket costs, KNOW WHAT YOU ARE DOING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment