Windows 上的 Heroku - “没有这样的文件或目录”
我已经按照 Windows 上的 Heroku 安装说明进行操作,让 git 从 ruby 命令行(路径环境变量集)工作,但是每次我尝试运行基本的 heroku create 命令时,都会收到以下错误
c:/ruby192/lib/ruby/1.9.1/gems/heroku-2.0.2/lib/heroku/command/base.rb:83in 'read': No such file or directory - C (Errno:ENOENT)
:可执行目录到路径环境变量(c:\ ruby192 \ bin),这是来自root round stackoverflow的指导,但这似乎没有帮助。
有什么想法吗? 提前致谢。
I've followed the Heroku installation instruction on windows, have git working from the ruby command line (path env variable set), but each time i try to run a basic heroku create command, i get the following error:
c:/ruby192/lib/ruby/1.9.1/gems/heroku-2.0.2/lib/heroku/command/base.rb:83in 'read': No such file or directory - C (Errno:ENOENT)
I've added my executable directory to the path environment variable (c:\ruby192\bin) which was the guidance from rooting round stackoverflow, but this didnt seem to help.
Any thoughts?
thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
昨天我也经历了同样的事情。这是 Heroku gem 2.0.2 的问题。
该线程帮助我解决了问题 尝试创建 Heroku 应用程序时出错在 Windows 上。
我做了:gem install heroku 2.0.4到heroku keys:add到heroku create,一切都按预期工作。
这是 2.0.2 版本 的一个错误,我相信 Heroku 2.0.4 应该可以工作。
I went through the same thing yesterday. It was an issue with Heroku gem 2.0.2.
this thread helped me solve the issue Error when trying to create Heroku app on Windows.
I did: gem install heroku 2.0.4 to heroku keys:add to heroku create, and everything worked as it should.
It was a bug with version 2.0.2 i believe, Heroku 2.0.4 should work.
这对我有用。
1.转到c:/ruby192/lib/ruby/1.9.1/gems/heroku-2.0.2/lib/heroku/command/base.rb文件
2. 找到“method_added”方法的代码。会有这样一条线。
将上面的代码行替换为下面的代码段。
我从写在“method_added”上方的方法定义中找到了这个代码段。
this worked for me.
1. go to c:/ruby192/lib/ruby/1.9.1/gems/heroku-2.0.2/lib/heroku/command/base.rb file
2. find the code for the 'method_added' method. there would be a line like this.
replace the above line of code with the below code segment.
I found this code segment from the method definition written just above the 'method_added'.
我仍然偶尔会遇到这个问题(heroku 2.35.0 / Windows 7)。当我尝试从 git 安装附带的(方便!)Git Bash shell 中使用 heroku 时,就会出现此问题。如果我使用 Windows 自己的 shell(“命令提示符”),heroku 运行良好。
我不确定发生了什么事;通常,如果我在下一个提示符下键入它,heroku 找不到的任何内容都可以正常工作。当 Git Bash 尝试为其启动 heroku 的环境设置 PATH 变量时,一定会出现一些问题。
I still occasionally have this problem (heroku 2.35.0 / Windows 7). It comes up when I try to use heroku from the (convenient!) Git Bash shell that came with my git installation. If I use Windows' own shell ("Command Prompt"), heroku runs fine.
I'm not sure what's going on; usually whatever it is heroku can't find works just fine if I type it at the next prompt. Something must get messed up when Git Bash tries to set the PATH variable for the environment it's launching heroku in.