2013-03-12 3 views
0

나는 호기심 문제에 직면 해있다.Heroku의 원격 Repos 사이를 전환

두 개의 데스크톱이있는 Linux 박스를 실행하고 있습니다.

데스크톱 1 : 애완 동물 프로젝트 터미널 1 개 Heroku가 로그인 실행 : 내 개인 전자 메일 Heroku가 앱 1

데스크톱 2 : 실제 프로젝트 터미널 2 Heroku가 로그인 실행 : 같은 여기 내 환경입니다 위와 같이 : 내 개인 전자 메일 Heroku App 2

내 애완 동물 프로젝트에서 실제 프로젝트로 바탕 화면 1에서 바탕 화면 2로 전환하면 깜짝! 터미널 2는 에 연결되어 있습니다. Heroku App 1!

어떻게 두 개의 Heroku 환경을 적절하게 전환하여 별도의 환경을 유지하면서이 문제를 해결할 수 있습니까? 사전에

감사합니다.

답변

0

Heroku Accounts cli plugin을 사용해야합니다.

$ heroku plugins:install git://github.com/ddollar/heroku-accounts.git 

$ heroku accounts:add personal 
Enter your Heroku credentials. 
Email: [email protected] 
Password: ****** 

Add the following to your ~/.ssh/config 

Host heroku.personal 
    HostName heroku.com 
    IdentityFile /PATH/TO/PRIVATE/KEY 
    IdentitiesOnly yes 
관련 문제