If you are only concerned with environment variables, you can also consider using:
foreman run node --debug app.js
The run command is not exactly the same as start ; instead of launching your entire application, it only runs a command in the context of your Heroku application environment. Thus, this may or may not work depending on your situation (if you have support workers, etc.).
George Pantazis
source share