Skip to content

Commit

Permalink
Merge pull request cloudfoundry-samples#12 from voelzmo/patch-1
Browse files Browse the repository at this point in the history
Switch instance index ENV from legacy to current
  • Loading branch information
animatedmax authored Dec 11, 2020
2 parents 2c7987e + 77fa223 commit 18cc56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/vcap_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module.exports = {
},

get_app_index: function () {
if ( process.env.INSTANCE_INDEX) {
var app_index = process.env.INSTANCE_INDEX
if ( process.env.CF_INSTANCE_INDEX) {
var app_index = process.env.CF_INSTANCE_INDEX
return app_index
}
},
Expand Down

0 comments on commit 18cc56e

Please sign in to comment.