heroku/heroku — Issue #169: Add a default --app option when a folder has 2 different remotes
Author: pothibo
Created: 2011-10-22 16:53:21+00:00
State: open

This is useful when you link your local folders to 2 different heroku app (Staging & Production for example).

It would be nice to specify a default app (Staging for example) so all commands are sent to that default app unless explicitly mentionned.

Here's an example:

cd ~/myHerokuAppFolder

heroku apps:default staging

git commit -a -m 'Make changes to test on staging'

git push staging

heroku logs -t (would choose staging by default)

//everything is fine... push to production

git push production

//Check everything is working fine:
heroku logs -t --app production