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.