How can I specify a gem to pull from a private github repository?

前端 未结 8 2265
攒了一身酷
攒了一身酷 2020-12-02 07:51

I have a private repository on Github that I want to use. I deploy my app to Heroku. How can I specify a private repository as the source on my gemfile? I imagine it wouldn\

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 08:04

    Hopefully still relevant in 2015, you can use https://github.com/siassaj/heroku-buildpack-git-deploy-keys with a deploy key from github.

    This way you avoid putting the username and pass into Gemfile, which will end up as plain text in the Gemfile.lock

提交回复
热议问题