andyet/signalmaster — pull request #19 by smessmer (2014-04-14 19:15:18+00:00)
Title: Heroku: Run on port dictated by heroku

When running on heroku, we're not free to choose our own port. Heroku sets an environment variable telling us which port to use.

This commit looks for this environment variable and uses it in case.

This makes signalmaster run well on heroku (for me at least).