progrium/dokku — pull request #279 by alhafoudh (2013-10-31 15:18:32+00:00)
Title: Fixed port redirection issues

App works after first push, but after second, it stops working. It is because the deploy script makes wrong assumptions about the port.

My fix starts the app on the same port 5000 and captures the redirected port, so nginx can proxy the requests properly.