Multiple heroku accounts

前端 未结 14 1715
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 05:01

I\'m having trouble when working with multiple Heroku accounts on my computer.

The thing is that it\'s worked great before by switching accounts with the heroku gem.

14条回答
  •  爱一瞬间的悲伤
    2020-12-04 05:25

    This has been bugging me for a while, and I never found a solution that I liked. Finally found one.

    (OS X specific answer.)

    You can just create new users. Go to System Preferences -> Users & Groups -> Add user or group button. You can create a few users for different heroku accounts, I just named mine user1, user2, etc.

    Then go to System Preferences -> Sharing -> Remote Login -> Allow access for: All Users

    At this point, you can go to a terminal and do the following:

    $ ssh user1@localhost
    

    Then you can do things like this:

    $ heroku login
    $ heroku keys:add
    

提交回复
热议问题