LoginSignup
8
7

More than 5 years have passed since last update.

複数の Heroku アカウントを使い方

Last updated at Posted at 2015-05-31

プラグインをインストール

heroku plugins:install https://github.com/heroku/heroku-accounts.git

使い方

アカウントを追加

例えば、personalというアカウント名をすると:

heroku accounts:add personal

Enter your Heroku credentials.
Email: あなたのメール
Password: パスワード

SSH キーを作る

ssh-keygen -t rsa -C "アカウントのメール"

~/.ssh/config というファイルに情報を追加

Host heroku.personal
  HostName heroku.com
  IdentityFile ~/.ssh/id_heroku_personal_rsa
  IdentitiesOnly yes

アカウントを一覧

heroku accounts

アカウントを使う

heroku accounts:set personal

アカウントを削除する

heroku accounts:remove personal

Heroku のプロジェクトをCloneする

例えば、practice アカウントに my-first-appというプロジェクトがあると

git clone git@heroku.practice:my-first-app.git

Heroku のコマンドを実行する時、もし no app specifiedっていうエラーが発生したら、このコマンドを実行すると大丈夫だと思います:

heroku git:remote -a アプリケーション名

8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7