heroku/heroku — pull request #204 by maxwell (2012-01-05 06:01:03+00:00)
Title: Default value for Heroku::Updater.home_directory

A story:

I was trying to make Diaspora Heroku compatible. As it is open source software, we expect Diaspora to run in a variety of environments, including Heroku, with minimal fuss. As such, I included the heroku gem in our Gemfile.

Currently, we run our production server on a VPS, and use DaemonTools to keep tabs on our processes. DaemonTools runs processes as a user which does not have a ENV['HOME'] or ENV['USERPROFILE'] variable set, so when I ran my app server via DaemonTools, it would choke when it required the Heroku gem.

I realize this is a bug which is not directly related to Heroku, but I spent a good amount of time trying to figure out what exactly was happening, as running the server in the foreground worked fine. As it doesn't change too much code, and it might help some open source nerds out in the future, I hope it is cool to pull in.

I'm willing to try a different approach to solve the problem if this doesn't suit your tastes.

xoxoxo maxwell