I find the variable PORT a little to generic for use in my own templates.  Perhaps I'll add a command line argument, then your Heroku procfile could set it accordingly.