Re: Starting Spring Boot App after deploying it to CF


James Bayer
 

the java buildpack takes care of setting the port for you with spring boot
apps.

run a command like this where you replace "jamesboot" with whatever your
app is called:
cf curl /v2/apps/`cf app jamesboot --guid`/summary | grep start_command

and you'll see how the java buildpack assembles the detected_start_command
with the SERVER_PORT being set to $PORT

On Sun, Sep 13, 2015 at 10:50 AM, Qing Gong <qinggong(a)gmail.com> wrote:

Hi James,

It does work. I am not sure why it didn't last time. I will need to figure
out what's difference between this sample app and my testing SB app.

One more thing. In my previous apps, I have to specifically listen on the
${PORT} so that the app will not be killed by CF. I thought CF needs this
port to open for the health monitor? With this sample app, I don't have to
do that. Is there some code that does that automatically?

Thanks again!
--
Thank you,

James Bayer

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.