0

When I run Heroku commands, I'm always running them from the directory of the project I'm working on. So typing -a appname is annoying.

From this question's answers, it seems like you can set a heroku remote and that will handle it.

But instead of setting a heroku remote, I would rather use a dotfile .heroku where I could set the app and other settings for the Heroku CLI.

So does Heroku have any dotfile that I can use to configure this?

Merlin -they-them-
  • 2,731
  • 3
  • 22
  • 39

1 Answers1

0

Apart from the git remote, the Heroku CLI also looks into the HEROKU_APP environment variable.

By using direnv, dotenv or similar tools for project-specific environments you can easily set the respective Heroku app for each project.

Denis Cornehl
  • 4,104
  • 1
  • 20
  • 24