Gem file with git remote failing on heroku push

后端 未结 2 360
面向向阳花
面向向阳花 2021-02-02 05:52

I have the following line in my gemfile:

gem \'client_side_validations\', :git => \"git@github.com:Dakuan/client_side_validations.git\", :branch => \"maste         


        
2条回答
  •  悲哀的现实
    2021-02-02 06:11

    Use this GitHub URL instead: git://github.com/Dakuan/client_side_validations.git

    The git@github.com:… URL is the writable SSH version, which requires authentication with an SSH key connected to a GitHub account that has write access to the repository.

    The git://github.com/… URL is the public, read-only version.

    Since the gem you're using is in a public GitHub repository, you can also use this shorthand in your Gemfile:

    gem 'client_side_validations', :github => 'Dakuan/client_side_validations'
    

    See the Bundler Git documentation for more information.

提交回复
热议问题