首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >JRuby Heroku宝石

JRuby Heroku宝石
EN

Stack Overflow用户
提问于 2012-08-08 15:18:30
回答 2查看 337关注 0票数 4

可以在JRuby中使用Heroku客户端吗?

我已经成功安装了heroku gem及其所有依赖项,但我无法登录。

代码语言:javascript
复制
PS D:\Projects\myproject> heroku login
Enter your Heroku credentials.
Email: myname@mydomain.com
Password (typing will be hidden): mypassword

 !    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:       write would raise (OpenSSL::SSL::SSLError) (Excon::Errors::SocketError)
    Backtrace:   org/jruby/ext/openssl/SSLSocket.java:626:in `syswrite_nonblock'
                 C:/JRuby/lib/ruby/1.9/openssl/buffering.rb:374:in `write_nonblock'
                 C:/JRuby/lib/ruby/gems/shared/gems/excon-0.15.5/lib/excon/socket.rb:117:in `write'
                 C:/JRuby/lib/ruby/gems/shared/gems/excon-0.15.5/lib/excon/connection.rb:223:in `request_kernel'
                 C:/JRuby/lib/ruby/gems/shared/gems/excon-0.15.5/lib/excon/connection.rb:101:in `request'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-api-0.3.2/lib/heroku/api.rb:60:in `request'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-api-0.3.2/lib/heroku/api/login.rb:5:in `post_login'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/auth.rb:76:in `api_key'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/auth.rb:185:in `ask_for_credentials'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/auth.rb:217:in `ask_for_and_save_credentials'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/auth.rb:80:in `get_credentials'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/auth.rb:41:in `login'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/command/auth.rb:22:in `login'
                 org/jruby/RubyBasicObject.java:1667:in `__send__'
                 org/jruby/RubyKernel.java:2060:in `send'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/command.rb:179:in `run'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/lib/heroku/cli.rb:25:in `start'
                 C:/JRuby/lib/ruby/gems/shared/gems/heroku-2.30.2/bin/heroku:16:in `(root)'
                 org/jruby/RubyKernel.java:1050:in `load'
                 C:\JRuby\bin\heroku:23:in `(root)'

    Command:     heroku login
    Version:     heroku-gem/2.30.2 (java) ruby/1.9.3

PS D:\Projects\myproject>

都会很感谢你的帮助。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2012-08-08 15:40:38

我想我也遇到过OpenSSL和JRuby (Ruby1.9.2)不兼容的问题。如果您只想登录,请尝试

JRUBY_OPTS=--1.8 heroku登录

这将使用jruby的ruby实现的1.8.7版本,它应该与OpenSSL一起工作

编辑:对于窗口

set JRUBY_OPTS=--1.8

heroku登录

设置JRUBY_OPTS=--1.9

编辑:

截至

heroku-toolbelt/2.30.5 (java) ruby/1.9.2

我不再有这个问题了。

票数 2
EN

Stack Overflow用户

发布于 2012-12-19 09:45:01

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11859549

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档