Herokuとローカルでgemのgit指定方法でエラーのメモ
Aug 11, 2014AD:
		
		
	
	Gemの指定
ローカルのGem
| 
					 1  | 
						gem 'activeadmin', :git => 'git@github.com:gregbell/active_admin.git'  | 
					
HerokuのGem
| 
					 1  | 
						gem 'activeadmin', github: 'gregbell/active_admin'  | 
					
もしローカルで、Herokuの指定方法だと、下記の用にcloneエラーがでてしまいます。
| 
					 1  | 
						Retrying git clone 'git://github.com/gregbell/active_admin.git' "/home/vagrant/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca" --bare --no-hardlinks --quiet due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git clone 'git://github.com/gregbell/active_admin.git' "/home/vagrant/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca" --bare --no-hardlinks --quiet` in directory /vagrant/??? has failed.  | 
					
地味に悩んだのですが、 git://をhttpsに変換するように、configに追加するようにして、herokuと同じ指定方法で動くようになりました。
| 
					 1  | 
						git config --global url."https://".insteadOf git://  | 
					
		AD:
			
			
		
		
	
No Comments, Comment or Ping
Reply to “Herokuとローカルでgemのgit指定方法でエラーのメモ”
Warning: Undefined variable $user_ID in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/themes/grid_focus_public_mizo/comments.php on line 66
You must be logged in to post a comment.