Re: How to start my app in http and https ports?

Daniel Mikusa

Your app needs to listen on the port assigned to it. It can find this
information by looking at the environment variable named `PORT` and reading
the value out of that (it will be the port number). If your app is being
run by Diego, which is pretty much all CF installations now, the port
number will be 8080. You can get by with just manually configuring the
port to 8080, but technically you should read the port number from the PORT
environment variable as it could potentially change in the future.

Hope that helps!

On Thu, Sep 14, 2017 at 4:30 AM, Ushani Balasooriya <ushanib(a)>

Hi Daniel,
I have changed my app to be started on http transport and it is started on
port 9763 by default when I deploy it. So should this port be changed to
listen to 8080 when I deploy on PCF or anything else should be done? What
is the port assigned to $PORT variable if I use it in my application

Join to automatically receive all group messages.