Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update gem having source as github url on heroku?

Tags:

heroku

Currently we have one gem whose source repo is github and we added it as

gem 'xyz', :git => '[email protected]/sandip/abc.git'

Now, after changing some code at github repo. How do we update the same gem on heroku ? because heroku does not support command like -

heroku bundle update GEM_NAME
like image 980
Sandip Ransing Avatar asked Feb 21 '12 08:02

Sandip Ransing


People also ask

How to sync GitHub with Heroku?

To connect a Heroku app with a GitHub repo, go to the app's “Deploy” tab on Heroku Dashboard and select the GitHub pane. If you haven't connected your Heroku and GitHub accounts, you will be prompted to complete the GitHub OAuth flow.

Can't connect to GitHub in Heroku?

We are unable to access this connected repository on GitHub The authorization key is not valid, or the account used to connect to GitHub doesn't have access to the repository. Try disconnecting the repository above and then reconnect. That is the error I got when trying to connect my private GitHub repo to Heroku.

Is Heroku Git private?

When you deploy to heroku the repository is private to the owner and the added collaborators.


1 Answers

You need to update your Gem locally in your bundle, commit and push:

bundle update

Your Gemfile.lock contains the versions of the gems to be used by the application.

   GIT
     remote: git://github.com/xyz/abc.git
     revision: bc9ea93f50e848f71759669918635639b9f1aaa5
like image 112
Neil Middleton Avatar answered Nov 25 '22 13:11

Neil Middleton