8

我正在尝试将我的第一个 rails 应用程序部署到 heroku,不幸的是,在运行heroku create命令时出现错误:

@ 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/ | git@heroku.com: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.

4

1 回答 1

0

您不应该给出要创建的应用程序的名称。像heroku 创建 application_name这就是这个链接中所说的。

于 2015-04-29T12:48:07.923 回答