Reputation: 2265
How do I get HEROKU
specific ENV
variables? (Such as $HEROKU_API_KEY_ENC
)
I'm writing a buildpack to perform some operations on app deploys (not dyno restart, just deploy) but I need to know which variables are available at that point.
I know I have access to my own environment variables and HEROKU runtime dyno metadata
but I'd like to see what else is there, such as which git user is making the deploy, or whether there's a variable to determine it is a deploy or a restart etc.
I appreciate your help.
P.S I already tried deployhooks
and it doesn't solve my problem.
Upvotes: 2
Views: 1569
Reputation: 1554
How about this
heroku config --app your_app_id | grep "your_variable"
Upvotes: 2
Reputation: 32629
The linux printenv
command will display every available environment variable.
Upvotes: 2