0

我試圖將rails應用程序從2.3.8遷移到3.2。我發現適合遷移任務的rails_upgrade插件。但有些東西阻止了我,我不知道它。沒有這樣的文件或目錄 - git://github.com/rails/rails_upgrade.git(Errno :: ENOENT)

也嘗試使用ssh克隆相同的插件,但沒有構建插件的rake任務。

ruby script/plugin install git://github.com/rails/rails_upgrade.git "git://github.com/rails/rails_upgrade.git" 

     /home/chitrank/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/open-uri.rb:35:in `initialize': No such file or directory - git://github.com/rails/rails_upgrade.git (Errno::ENOENT) 
     from /home/chitrank/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/open-uri.rb:35:in `open_uri_original_open' 
     from /home/chitrank/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/open-uri.rb:35:in `open' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:863:in `fetch_dir' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:857:in `fetch' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:856:in `each' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:856:in `fetch' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:219:in `install_using_http' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:169:in `send' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:169:in `install' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:734:in `parse!' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:732:in `each' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:732:in `parse!' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:447:in `parse!' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:463:in `parse!' 
     from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:871 
     from script/plugin:3:in `require' 
     from script/plugin:3 

任何人都可以幫助我嗎?

回答

0

嘗試使用HTTPS URL來代替:

https://github.com/rails/rails_upgrade.git 
+0

我已經嘗試過,拋出另一個問題/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/open-uri.rb :277:在'open_http'中:404 Not Found(OpenURI :: HTTPError) –

+0

你可以在命令行打開url(使用curl或其他程序)嗎?讓你沒有像HTTP_PROXY這樣的環境變量。 –

相關問題