Monday, 15 July 2013

ruby - Rails app deployment on heroku -



ruby - Rails app deployment on heroku -

i have 2 heroku accounts 1 using email abc@gmail.com , 1 using xyz@gmail.com

previously deployed rails app xyz@gmail.com business relationship want deploy abc@gmail.com business relationship using same machine. logged in using credentials abc@gmail.com using next command

heroku login

but when git force still uses xyz@gmail.com , gives error message xyz@gmail.com not have access application's repository.

i have generated ssh key business relationship abc@gmail.com , added heroku technically should work not

please help

heroku login used interaction cli - git uses ssh.

you can either:

add xyz@gmail.com collaborator abc@gmail.com

or

assuming abc@gmail.com has public/private key uploaded heroku edit/create ~/.ssh/config

host heroku.abc hostname heroku.com identityfile ~/.ssh/<abc.key>

update projects ~/.git/config utilize git@heroku.abc:.... in remote entries.

so git remote -v shows:

heroku git@heroku.abc:appname.git (fetch) heroku git@heroku.abc:appname.git (push)

so when force heroku remote ssh utilize key defined on heroku.abc entry in ~/.ssh/config

ruby-on-rails ruby git heroku

No comments:

Post a Comment