/ / Eu não posso escolher em qual heroku controle remoto meu aplicativo - ruby-on-rails, git, heroku, github

Eu não posso escolher em qual heroku controle remoto meu aplicativo - ruby-on-rails, git, heroku, github

Eu adiciono um aplicativo heroku chamado "myapp-production". Eu poderia empurrar este controle remoto via git push heroku master. Bem.

Eu criei um segundo aplicativo no heroku chamado "myapp-staging", e adicionei este controle remoto via git remote add myapp-staging git@heroku.com:myapp-staging.git.

git push heroku master parece corresponder a myapp-production.

E quando eu tento git push myapp-staging, Eu tenho esse erro:

Permissão negada (publickey).

fatal: não foi possível ler do repositório remoto.

Por favor, verifique se você tem os direitos de acesso corretos e se o repositório existe.

Como posso consertar e idealmente ser capaz de git push myapp-staging master e git push myapp-production master ?

git remote -v dá:

myapp-staging   git@heroku.com:myapp-staging.git (fetch)
myapp-staging   git@heroku.com:myapp-staging.git (push)
heroku          https://git.heroku.com/myapp-production.git (fetch)
heroku          https://git.heroku.com/myapp-production.git (push)
origin          git@github.com:johndoe/myapp.git (fetch)
origin          git@github.com:johndoe/myapp.git (push)

Agradeço antecipadamente por sua ajuda.

Respostas:

0 para resposta № 1

Certifique-se de que sua chave pública ssh normalmente ~/.ssh/id_rsa.pub está registrado com heroku. Você pode verificar isso em https://dashboard.heroku.com/account