Heroku 等上的 TexLive - 我有哪些选择?
我正在尝试构建一个在内部调用 LaTeX 的 Rails 应用程序 将 TeX 文件拼接在一起以动态生成文档。不一定是PDF。 只是 TeX -> DVI-> PS 会为我做的。
我最好的猜测是我需要托管 2 个独立的代码库,一个用于 Rails 代码(标准 $RAILS_ROOT )和(可能)单独的目录结构 用于托管 TeX 文件(在某种程度上也是代码)。在我看来, Rails 应用程序将对 LaTeX 进行系统调用(latex
) 因此
,我想知道,如果你们可以帮助我决定什么 最好的托管选项可能是上述设置(除非,您认为 设置本身应该不同)
我知道像 Heroku 这样的东西可以让我轻松地托管 Rails。 但据我所知,他们的服务器没有我需要的完整 TexLive 安装。 我问他们是否可以在他们的服务器上安装 TexLive。但假设 他们不接受一次性请求,我有什么选择?
然后我是否需要在 Amazon EC2 等设备上从头开始重新创建本地设置?
关于可用选项及其所需任务的任何指示都将是最重要的 有帮助。
谢谢 阿比纳夫
I am trying to build a Rails application that would internally invoke LaTeX
to stitch together TeX files to generate documents on the fly. Not necessarily PDF.
Just TeX -> DVI -> PS would do it for me.
My best guess is that I would need to host 2 separate code-bases, one for
Rails code ( the standard $RAILS_ROOT ) and (possibly) a separate directory structure
for hosting the TeX files ( which is also code in a way ). And as I see it,
the Rails app would make system calls to LaTeX (latex <options> <files>
)
on the TeX files to do what I want it to do
I was wondering, therefore, if you guys could help me decide what the
best hosting option could be for the above setup ( unless, you think that
the setup itself should be different )
I know that something like Heroku would allow me to host the Rails bit easily.
But as far as I can tell, their servers do not have full TexLive installation which I need.
I have asked them if they could install TexLive on their servers. But assuming
they don't entertain one off requests, what are my options ?
Do I then need to recreate my local setup from scratch on something like Amazon's EC2 ?
Any pointers on available options and the tasks they would entail would be most
helpful.
Thanks
Abhinav
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为你应该能够使其在 Heroku 上工作,但你可能需要编写一个自定义构建包,其中包含/安装乳胶二进制文件:
https://devcenter.heroku.com/articles/buildpacks
I think you should be able to make it work on Heroku but you may need to write a custom buildpack which includes/installs the latex binaries:
https://devcenter.heroku.com/articles/buildpacks
已经有一个 TeX 的构建包,它非常适合我:
https://github.com/holiture/heroku-buildpack-tex
There is already a buildpack for TeX and it works for me perfectly:
https://github.com/holiture/heroku-buildpack-tex