0
我是Heroku新手,所以這個卡住了。我可以Heroku的工作,但是當我這樣做耙子命令,我得到這個錯誤,所有的時間:調用heroku命令時出現Git版本錯誤 - Windows
PS C:\rails\testApp> heroku rake db:migrate
C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/helpers.rb:110:in ``': No such file or dir
sion (Errno::ENOENT)
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/helpers.rb:110:in `has_git?'
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/helpers.rb:115:in `git'
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/command/base.rb:192:in `git_r
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/command/base.rb:170:in `extra
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/command/base.rb:29:in `app'
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/command/run.rb:74:in `rake'
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/command.rb:135:in `send'
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/command.rb:135:in `run'
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/lib/heroku/cli.rb:9:in `start'
from C:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.21.2/bin/heroku:21
from C:/Ruby187/bin/heroku:19:in `load'
from C:/Ruby187/bin/heroku:19
奇怪的是,Heroku的命令將工作進行到底,但我也能不排除這可能會對下游造成一些副作用。我詢問了一些基於Mac的同事,他們認爲這是一些僅限於Windows的問題,但由於此錯誤來自gem目錄,因此如果不必這樣做,我不想與該文件混淆。
助手與誤差來源是:
def has_git?
%x{ git --version }
$?.success?
end
如此明顯Git是不被人發現的時候,其實我使用Git。我在那裏使用Git Bach工作,是否需要將powershell/heroku鏈接到git?