Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,5 @@ | ||
# Heroku Accounts | ||
# Deprecated | ||
|
||
Helps use multiple accounts on Heroku. | ||
This project is deprecated and is no longer being maintained. | ||
|
||
## Installation | ||
|
||
$ heroku plugins:install git://github.com/ddollar/heroku-accounts.git | ||
|
||
## Usage | ||
|
||
To add accounts: | ||
|
||
$ heroku accounts:add personal | ||
Enter your Heroku credentials. | ||
Email: david@heroku.com | ||
Password: ****** | ||
|
||
Add the following to your ~/.ssh/config | ||
|
||
Host heroku.personal | ||
HostName heroku.com | ||
IdentityFile /PATH/TO/PRIVATE/KEY | ||
IdentitiesOnly yes | ||
|
||
Or you can choose a fully-automated approach: | ||
|
||
$ heroku accounts:add work --auto | ||
Enter your Heroku credentials. | ||
Email: work@example.org | ||
Password: ****** | ||
Generating new SSH key | ||
Generating public/private rsa key pair. | ||
Your identification has been saved in ~/.ssh/identity.heroku.work. | ||
Your public key has been saved in ~/.ssh/identity.heroku.work.pub. | ||
Adding entry to ~/.ssh/config | ||
Adding public key to Heroku account: work@example.org | ||
|
||
To switch an app to a different account: | ||
|
||
# in project root | ||
heroku accounts:set personal | ||
|
||
To list accounts: | ||
|
||
$ heroku accounts | ||
personal | ||
work | ||
|
||
To remove an account: | ||
|
||
$ heroku accounts:remove personal | ||
Account removed: personal | ||
|
||
Set a machine-wide default account: | ||
|
||
$ heroku accounts:default personal | ||
|
||
To clone a git repository from Heroku, change 'heroku.com' to the Host of the desired account defined in your .ssh/config: | ||
|
||
$ git clone git@heroku.work:repository.git | ||
|
||
If you want to switch the account for an app: | ||
|
||
$ heroku accounts:set work | ||
|
||
This also changes the URL of the git origin `heroku` to make sure you're using the correct SSH host. | ||
Please check out my current project [Convox](https://convox.com) for all of your deployment needs! |