ruby on rails - bitbucket private repository on heroku -


i have rails app requires gem. host gem on bitbucket in private repository.

in gemfile added gem following:

gem "my-gem", :git => "git@bitbucket.org:my-username/my-gem.git", :branch => 'master' 

i want deploy rails app on heroku with

git push heroku master 

now following error

fetching git@bitbucket.org:my-username/my-git-repo.git host key verification failed. fatal: remote end hung unexpectedly 

i understand error, because repository set private. how can solve problem?

i read question: deploying heroku using git on bitbucket, don´t answer :)..

bitbucket allows http basic auth on repository urls similar github. specify url gem https://username:password@bitbucket.org/username/gemrepo.git.

it does mean having username , password in gemfile, version controlled, , that's not practice, on other hand that's heroku recommends, so...


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -