How to get the Stack Where an App is Targeted to During Staging
search cancel

How to get the Stack Where an App is Targeted to During Staging

book

Article ID: 297677

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

This article provides a way to get the stack where an app is targeted to during staging.

 


Environment


Cause

You might want to customize a buildpack where you want to put logic so it can support either Windows or Linux stack but how would you determine what particular stack was an app targeted to during staging?

 

Resolution

Cloud Controller sets the CF_STACK environment variable to the stack name during staging but not during the launch.

CF_STACK environment variable sample values are cflinuxfs2, windows2012R2