Getting the build number of the hero from environment variables on the cedar stack

I noticed that Heroku has a build version number, i.e. v251 when you deploy to a hero. Is there a way that I can read that from my application, maybe an environment variable? I have a node.js application on a cedar stack.

+4
source share
3 answers

Not directly, but if you can access the Heroku API, you can get it from Heroku releases.

+2
source

UPDATE

Run heroku releases and analyze the results in an environment variable each time you deploy.

0
source

How about using Dyno Metadata . It looks like the data you need is just an environment variable.

0
source

Source: https://habr.com/ru/post/1401825/


All Articles