2013-07-15 29 views
7

我嘗試部署我的第一個Rails應用程序的Heroku和運行heroku create命令時,不幸的是我得到了一個錯誤:Heroku的創建命令失敗 - 沒有這樣的文件或目錄

@ C:\railsprojects\sample_app> heroku create 
The system cannot find the path specified. 
Creating protected-reaches-1026... done, stack is cedar 
http://protected-reaches-1026.herokuapp.com/ | [email protected]:protected-reaches-1026.git 
! Heroku client internal error. 
! Search for help at: https://help.heroku.com 
! Or report a bug at: https://github.com/heroku/heroku/issues/new 

    Error:  No such file or directory - git --version (Errno::ENOENT) 
    Backtrace: C:/Users/paul/.heroku/client/lib/heroku/helpers.rb:103:in ``' 
       C:/Users/paul/.heroku/client/lib/heroku/helpers.rb:103:in `has_git?' 
       C:/Users/paul/.heroku/client/lib/heroku/helpers.rb:108:in `git' 
       C:/Users/paul/.heroku/client/lib/heroku/helpers.rb:156:in `create_git_remote' 
       C:/Users/paul/.heroku/client/lib/heroku/command/apps.rb:255:in `create' 
       C:/Users/paul/.heroku/client/lib/heroku/command.rb:206:in `run' 
       C:/Users/paul/.heroku/client/lib/heroku/cli.rb:28:in `start' 
       C:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>' 

    Command:  heroku create 
    Version:  heroku/toolbelt/2.39.4 (i386-mingw32) ruby/1.9.3 

我最初的想法是, GIT是不是在路徑或以其他方式不能叫,但我消除了由簡單地運行git --version問題的一部分:

@ C:\railsprojects\sample_app> git --version 
git version 1.8.3.msysgit.0 

所以,一切都顯得井然有序。其他人知道會發生什麼問題?

我運行的是Windows 7,Heroku客戶端的版本是heroku/toolbelt/2.39.4 (i386-mingw32) ruby/1.9.3

回答

0

你不應該給你想要創建的應用程序的名稱。像heroku創建應用程序名稱。這就是在這link中所說的。

相關問題