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


Dieu Cao <dcao@...>
 

Hi Jack,

There are not any explicit environment variables that we expose that an app
is running on DEAs or on Diego.
My best suggestion here would be to set an environment variable explicitly
and trigger your agent's behavior based on that.

-Dieu

On Mon, Feb 1, 2016 at 8:48 AM, Kris Hicks <khicks(a)pivotal.io> wrote:

You can use the CF CLI with the Diego-Enabler plugin to query whether an
application is running on Diego or not:
https://github.com/cloudfoundry-incubator/Diego-Enabler

e.g. `cf has-diego-enabled App_Name`

On Mon, Feb 1, 2016 at 7: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.