Heroku PS:Exec with ENV Vars

Viewed 269

I see this in the Heroku docs:

The SSH session created by Heroku Exec will not have the config vars set as environment variables (i.e., env in a session will not list config vars set by heroku config:set).

I need to be able to SSH into our sidekiq container specifically and run a console session there. To do this, I need access to the ENV vars. I cannot do this in a one off bash container, because the config is different for sidekiq container, and I need to confirm that values are getting set properly (via the console).

Something like this: heroku ps:exec -a [our-app] -d [sidekiq.1] --with-env-vars

How can I use heroku ps:exec (or a similar command) to ssh into an existing dyno WITH config vars present?

1 Answers
Related