开发者

Heroku on Windows: No such file or directory - C:\Users\田中/.heroku (Errno::ENOENT)

开发者 https://www.devze.com 2023-04-05 11:00 出处:网络
Following Heroku\'s indications, I installed RailsInstaller on Windows. Everything worked fine, including the gem install heroku command, but the next step fails:

Following Heroku's indications, I installed RailsInstaller on Windows.

Everything worked fine, including the gem install heroku command, but the next step fails:

$ heroku list
<enter credentials>
c:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:1231:in `chmod': No such file or directory - C:\Users\田中/.heroku (Errno::ENOENT)

I tried both from RailsInstaller's Command Prompt with Ruby on Rails and Git bash consoles, same result.

To try the solution described here and here, I typed gem install heroku -v=2.0.4 and it installed fine, but still same problem.

The error appears just after I enter the credentials. If I enter wron开发者_Go百科g credentials, another error message is shown.

What is going wrong?

The directory C:\Users\田中\.heroku actually exists and is visible from the consoles.


It seems to be a bug in the Heroku gem.

I have found a quick-and-dirty solution that works for me, here is the patch I wrote:
https://github.com/nicolas-raoul/heroku/commit/d45d2a9

After applying this fix, the commands go smooth and I am able to use Heroku+git normally.

0

精彩评论

暂无评论...
验证码 换一张
取 消