Register Now

Getting Efficient when working with Heroku


Reading Time: 1 minute


Heroku provides a great infrastructure, but using their Gem often feels a little bit clunky. Especially when viewing the Heroku logs or getting into the console typing out all of the commands is time consuming. To make working working with Heroku a little easier we started to use bash aliases and functions. Simply add them to your bash config.

UPDATE: @_tomekw ported the functions to ZSH, which is awesome. Thx. This simply creates a h function that calls the heroku gem with the last parameter being the heroku app name. For example to show the config for our production app I simply type hp config.

Efficient Heroku

I personally do not like to have our Heroku production application as a git remote as it forces me to always go through the proper way of testing and deployment with Codeship. Thus I often need to provide the app name which is nicely solved by these functions. They provide a nice template which you can use to build more complex functions or aliases for your daily development. As you use the Heroku Gem often on a daily basis even the smallest productivity gain has tremendous effects on your time. Give it a try.

Sign up for a free Codeship Account

Heroku Plus seems to be another gem worth looking at for more efficient Heroku Usage. They have very nice support for multiple accounts. So take a look at those and if you have any more efficiency tips add them in the comments section. I will update this post accordingly.

Subscribe via Email

Over 60,000 people from companies like Netflix, Apple, Spotify and O'Reilly are reading our articles.
Subscribe to receive a weekly newsletter with articles around Continuous Integration, Docker, and software development best practices.

We promise that we won't spam you. You can unsubscribe any time.

Join the Discussion

Leave us some comments on what you think about this topic or if you like to add something.