如何在 Heroku 上使用 xsltproc 命令行工具
在我的 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?
如果我知道这意味着什么,我可能就不会在这里了。我猜这意味着创建一个包含所有 xsltproc 代码的文件,并为 xsltproc 命令调用该文件。我不知道该怎么做。有人可以帮忙吗?
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:
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果有人想在 Heroku 上使用 xsltproc 命令行工具,请不要这样做。我能够使用 Nokogiri gem 以及内置的 XPath 函数来完成我需要的一切。
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.