robfig/revel — pull request #23 by jamesward (2012-09-28 15:50:33+00:00)
Title: Hacky way to expose the port to the command line

This allows the port to be set from the command line. For running on Heroku we need to be able to set the port programmatically.

There might be better ways to do this so feel free to tell me this is wrong and I should do it in some other way. Also, I'm new to Go so this code might be horrible. :)

BTW: I've created a Revel Buildpack for Heroku:
https://github.com/jamesward/heroku-buildpack-go-revel
Demo app and instructions:
https://github.com/jamesward/hellorevel