如何在Heroku上使用xsltproc命令行工具

时间:2023-01-20 17:13:19

In my Ruby on Rails application, I am using xsltproc command-line tools. These work on my development machine, but are not working on Heroku, the deployment platform I am using. I asked Heroku support a question about it, and here is what they said:

在我的Ruby on Rails应用程序中,我使用的是xsltproc命令行工具。这些工作在我的开发机器上,但不适用于我正在使用的部署平台Heroku。我问Heroku支持一个关于它的问题,这就是他们所说的:

Hi– can you try compiling xsltproc as a standalone static binary and deploy that as part of your application?

If I knew what that meant, I probably wouldn't be here. I am guessing it means make a file with all the xsltproc code and call that for the xsltproc commands. I have no idea how to do that. Can anyone help?

如果我知道这意味着什么,我可能不会在这里。我猜这意味着使用所有xsltproc代码创建一个文件,并为xsltproc命令调用它。我不知道该怎么做。有人可以帮忙吗?

1 个解决方案

#1


-1  

If anyone wants to use xsltproc command-line tools on Heroku, don't do it. I was able to use the Nokogiri gem, along with the built in XPath functions to do everything I need.

如果有人想在Heroku上使用xsltproc命令行工具,请不要这样做。我能够使用Nokogiri gem以及内置的XPath函数来完成我需要的一切。

#1


-1  

If anyone wants to use xsltproc command-line tools on Heroku, don't do it. I was able to use the Nokogiri gem, along with the built in XPath functions to do everything I need.

如果有人想在Heroku上使用xsltproc命令行工具,请不要这样做。我能够使用Nokogiri gem以及内置的XPath函数来完成我需要的一切。