Adding an environment aware port config for the app, for heroku.