尝试在Windows上创建Heroku应用程序时出错 [英] Error when trying to create Heroku app on Windows

查看:88
本文介绍了尝试在Windows上创建Heroku应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <$  c $ c> d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/base.rb:83:在'read'中:没有这样的文件或目录-d( Errno :: ENOENT)
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/base.rb:83:in'extract_help'
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/base.rb:51:在'method_added'
from d:/ Ruby187 / lib /ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/addons.rb:14
from d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 36:在'gem_original_require'
from d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:'require'
from d:/ Ruby187 / lib / ruby​​ / gems / 1.8 / gems / heroku-2.0.1 / lib / heroku / command.rb:17:在'load'
从d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0。 1 / lib / heroku / command.rb:16:在'each'
from d:/Ruby187/lib/ruby/gems/1.8/gems/ heroku-2.0.1 / lib / heroku / command.rb:17:'load'
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/bin/heroku: 13
from d:/ Ruby187 / bin / heroku:19:'load'
from d:/ Ruby187 / bin / heroku:19

这是试图在Git Bash中执行命令。当我执行 heroku list 或任何其他heroku命令时,我会得到相同的错误信息。



错误信息,当我在cmd中执行命令时,-d替换为-D



它引用的违规行似乎提及加载所有这些文件来自命令文件夹。



这些问题似乎是尝试访问D作为目录而不是驱动器,但我无法弄清楚问题是什么。



有人对我应该尝试解决这个问题有什么想法吗?



额外info:我通过RubyInstaller安装了Ruby。我通过 gem install heroku 安装了heroku。我运行的Windows 7安装在我的C:驱动器上的Windows上,但Ruby和所有安装在我的D:驱动器上。解释:

在Win7上部署到Heroku时,我遇到了同样的问题。似乎几乎所有的英雄指挥都提出了类似的例外。我所有的代码都在C盘上,所以你的多个驱动器不是问题的根源。我深入研究了heroku gem,并确定这是gem中的一个bug:有两种处理解析路径的方法 - 一种可行,一种不行。



解决方案

Heroku gem在win7机器上被破解,你可以找到我的修复程序这里



我会提交此内容,并会在实际宝石中提供时进行更新。我希望这可以解决您的问题。



更新

昨晚提交票证和睦票106 。我确实收到了使用1.8.7的人的回复,表示它的仍然没有工作,因为它的确如此对于我而言,仍在研究它并将继续更新。



更新2

叉已拉入到heroku客户端2.0.3和2.0.4的这个问题的一些额外的更新,其中关闭票106



解决方案摘要

gem install heroku -v = 2.0.4


When I try to do heroku create I get the following error message:

d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/base.rb:83:in 'read': No such file or directory -d (Errno::ENOENT)  
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/base.rb:83:in 'extract_help'  
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/base.rb:51:in 'method_added'  
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command/addons.rb:14  
from d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in 'gem_original_require'  
from d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in 'require'  
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command.rb:17:in 'load'  
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command.rb:16:in 'each'  
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/lib/heroku/command.rb:17:in 'load'    
from d:/Ruby187/lib/ruby/gems/1.8/gems/heroku-2.0.1/bin/heroku:13
from d:/Ruby187/bin/heroku:19:in 'load'  
from d:/Ruby187/bin/heroku:19

This was trying to do the command in the Git Bash. I get the same error message when I do heroku list or any other heroku command.

I also get an identical error message when I do the command in cmd, but the "-d" is replaced with a " - D"

The offending lines it references seem to be mentioning loading all the files from the "commands" folder.

The problems seems to be something with trying to access D as a directory instead of a drive, but I can't figure out what the problem is.

Does anyone have any ideas for what I should try to fix this?

Extra info: I installed Ruby via the RubyInstaller. I installed heroku via gem install heroku. I'm running Windows 7 with Windows installed on my C: drive, but Ruby and everything is installed on my D: drive.

解决方案

Explanation :
I had the same problem when deploying on Win7 to Heroku. It seemed that almost any heroku command threw a similar exception. All of my code was on the C drive, so your multiple drives aren't the root of the problem. I dug a bit deep into the heroku gem and determined that this is a bug within the gem: there are two methods of handling the parsing paths-one which works and one that doesn't.

Solution :
Heroku gem is broken on win7 machines and you can find my fix here.

I'll be submitting this and will update when it's available in the actual gem. I hope this solves your problem.

Update :
Submitted the ticket last night, heroku ticket 106. I did get a reply from someone using 1.8.7 that says it's still not working as it did for me, still looking into it and will keep updating here.

Update 2 :
The fork has been pulled into heroku client 2.0.3 and some additional updates to this issue in 2.0.4 which have closed ticket 106.

Solution Summary :
gem install heroku -v=2.0.4

这篇关于尝试在Windows上创建Heroku应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆