Re: How does an application know it's running in DIEGO?


Ronak Banka
 

Hi Jack,

Any specific use case where your application should be aware of the runner
itself??

If you just want to check for a particular application from command line ,
you can use
cf curl /v2/apps/$(cf app APPLICATION_NAME --guid) | grep diego

Ronak

On Tue, Feb 2, 2016 at 12:25 AM, Jack Cai <greensight(a)gmail.com> wrote:

Hi,

Is there a way for the application to know whether it's running in DEA or
DIEGO? Looking at [1], there is no environment variable that can tell this.

Jack

[1]
https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html

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