- Generate an OAuth token from GitHub
You only need to check the repo scope when configuring the token permissions
- Update Gemfile to use your private repository
gem 'private_repo', git: 'https://github.com/username/private_repo.git' 3. Configure bundler with your OAuth token
bundle config github.com <your_github_oauth_token> Now bundle and if everything works locally you are ready to deploy to Heroku!
- Finally add BUNDLE_GITHUB__COM to your Heroku environment
$ heroku config:add BUNDLE_GITHUB__COM=<your_github_oauth_token>
You now have a private gem installed on Heroku!