运行“heroku create”时将rails应用程序部署到heroku时出现问题命令

发布于 2024-10-08 08:42:04 字数 1734 浏览 2 评论 0 原文

以前有人见过这个问题吗? 当我尝试运行命令“heroku create”时,出现与 ruby​​ 相关的目录的长错误。


C:\ Rails \ Waterloop3>heroku创建

创建severe-samurai-489....完成

创建http:/ /severe-samurai-489.heroku.com/ | [电子邮件受保护]:severe-samurai-48 9.git

C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpers.rb:78:in ``': 没有这样的文件或目录 - git remote ( Errno::ENOENT)

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpe

rs.rb:78:在 `shell 中的块'

    from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:121:in `chdir'

    from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:121:in `cd'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpe

rs.rb:78:在 `shell'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nds/app.rb:265:在 `create_git_remote'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nds/app.rb:49:在 `create '

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nd.rb:48:在 `run_internal'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nd.rb:20:在 `run'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/bin/heroku:13:in

`'

    from C:/Ruby192/bin/heroku:19:in `load'

    from C:/Ruby192/bin/heroku:19:in `<main>'

Has anyone seen this problem before?
When I try to run the command "heroku create", I get long error with directories related to ruby.


C:\Rails\Waterloop3>heroku create

Creating severe-samurai-489.... done

Created http://severe-samurai-489.heroku.com/ | [email protected]:severe-samurai-48
9.git

C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpers.rb:78:in ``': No such file or directory - git remote (Errno::ENOENT)

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpe

rs.rb:78:in `block in shell'

    from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:121:in `chdir'

    from C:/Ruby192/lib/ruby/1.9.1/fileutils.rb:121:in `cd'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpe

rs.rb:78:in `shell'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nds/app.rb:265:in `create_git_remote'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nds/app.rb:49:in `create'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nd.rb:48:in `run_internal'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/comma

nd.rb:20:in `run'

    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/bin/heroku:13:in

`'

    from C:/Ruby192/bin/heroku:19:in `load'

    from C:/Ruby192/bin/heroku:19:in `<main>'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱你不解释 2024-10-15 08:42:04

这行:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpers.rb:78:in ``': No such file or directory - git remote (Errno::ENOENT)

表示 heroku gem 正在尝试运行 git 但找不到它。您是否安装了 git 并从命令行运行?这是一个要求,因为 Heroku 使用它来管理部署。

This line:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-1.14.10/lib/heroku/helpers.rb:78:in ``': No such file or directory - git remote (Errno::ENOENT)

Says that the heroku gem is try to run git and can't find it. Do you have git installed and running from the command line? It is a requirement, since it is what Heroku uses to manage deployments.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文