Yomu和Heroku [英] Yomu and Heroku

查看:75
本文介绍了Yomu和Heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的应用程序中安装了'yomu'gem(https://github.com/Erol/yomu),并部署到了heroku。在我的本地机器(Mac OS)上运行良好。我在文档中注意到它说JRE是必需的。

I just installed the 'yomu' gem (https://github.com/Erol/yomu) in my application and deployed to heroku. On my local machine (Mac OS) it runs fine. I noticed in the documentation it states that JRE is required for it to work.

当我在Heroku上运行应用程序时,出现以下错误:

When I run the application on Heroku I get the following error:

Errno::ENOENT (No such file or directory - java -Djava.awt.headless=true -jar /app/.bundle/gems/ruby/1.9.1/gems/yomu-0.1.1/jar/tika-app-1.1.jar -t):

我假设yomu在Heroku上找不到java编译器。我正在读这个吗?如果我是,有没有我不考虑的插件?

I'm assuming that yomu can't find the java compiler on Heroku. Am I reading this right? If I am, is there an add-on that I'm not considering?

顺便说一下,我使用yomu的原因是因为它可以从中提取文本doc and docx files。

By the way, the reason I'm using yomu is because it can extract text from doc and docx files.

谢谢!

Thanks!

推荐答案

编译器 - 一个java运行库(一个JRE,就像文档说的那样)。在Heroku上不支持安装JRE作为插件。

Not a java compiler - a java runtime (a JRE, like the documentation said). Installing a JRE as an addon is not (yet?) supported on Heroku.

这篇关于Yomu和Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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