Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set a default app for Heroku Toolbelt?

I have more than one app/git remote at heroku and I would like to know if it is possible to configure a default application so that, whenever I forget to specify the app (--app), the toolbelt would use it.

like image 771
Rafael Oliveira Avatar asked Jul 05 '13 23:07

Rafael Oliveira


People also ask

What is heroku toolbelt?

The Heroku Toolbelt is a package of the Heroku CLI, Foreman, and Git — all the tools you need to get started using Heroku at the command line. The Toolbelt is available as a native installer for OS X, Windows, and Debian/Ubuntu Linux. The Toolbelt has been available since last fall as part of our polyglot platform.

Is heroku free forever?

Free Services on HerokuHeroku offers a free plan to help you learn and get started on the platform. Heroku Buttons and Buildpacks are free, and many Heroku Add-ons also offer a free plan.

Can I change my heroku app name?

Renaming an applicationIt is possible to rename an application by using the heroku:rename command. The application becomes accessible by the new name immediately, and the old name should not be used anymore to address it.


1 Answers

You can set the heroku.remote key in your repo's Git config to the name of the default remote. For example, if your remote is called staging, you could do this:

$ git config heroku.remote staging 

To see how this works, here is the relevant source.

For more, information about this, see Managing Multiple Environments for an App.

like image 113
ryanbrainard Avatar answered Sep 22 '22 19:09

ryanbrainard