Rake task for deploying to Heroku

Posted by Luke Francl
on Friday, February 12

Deploying to Heroku is pretty easy, but I’ve often found myself needing to do additional tasks after pushing to Heroku’s git repository. For example, if you have to migrate, you have to do that after pushing; and after migrating you have to restart the app server.

So here is a Rake task to automate that. It uses Heroku’s client library to find the git remotes you need to push to. Use it like this:

rake deploy # deploys to your default app for this directory

rake deploy APP=some-other-app # deploy to another app (e.g., a staging server)

Deploying Rails on EC2

Posted by Bruno
on Thursday, April 05

Who is this EC2, and is he related to that robot from Star Wars?

Um … no. EC2 stands for “Elastic Compute Cloud”; it’s a “web service designed to make web-scale computing easier for developers.” Try telling your mom that.

In mom-speak: EC2 is a way to cheaply and quickly set up virtual computers. That means you could set up a virtual machine running Fedora Core with RMagick, LAME, and ffmpeg, and then add 15 more instances at the click of a mouse.

OK, my mom still won’t care, but if you’re building a YouTube MeToo, then you probably will. Why?