bitbucket private repository on heroku

前端 未结 4 2030
遇见更好的自我
遇见更好的自我 2021-02-02 17:42

I have a rails app which requires a gem. I host this gem on bitbucket in a private repository.

In my Gemfile I added the gem like following:

gem \"my-gem         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 18:08

    Bitbucket allows for HTTP basic auth on repository URLs similar to github. Specify the URL for the gem as https://username:password@bitbucket.org/username/gemrepo.git.

    It does mean having your username and password in your Gemfile, which itself is version controlled, and that's not a good practice, but on the other hand that's what Heroku recommends, so...

提交回复
热议问题