有人使用 gollum-site 来生成 Markdown wiki 并将其托管在 heroku 上吗?
您好,我尝试使用 gollum-site gem,但它似乎只在本地主机上生成站点:默认 8000。我怎样才能获得 Heroku 上托管的 Markdown Wiki。以前有人尝试过这样做吗?
Hi i have tried using gollum-site gem, but it seems to only generate the site on localhost:8000 by default. How can i get the markdown wiki hosted on heroku. Anyone tried doing it before ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不久前有一个关于此问题的帖子。看起来这是不可能的,因为 Heroku 的只读文件系统以及您无权访问 git 的事实。
There was a thread on this a while ago. It looks like it isn't possible because of Heroku's readonly filesystem and the fact that you don't have access to git.
有 GitHub 存储库:heroku-buildpack-gollum-site 似乎只做你想要什么。它使用修改后的版本
heroku-buildpack-php 将 Apache 包安装到 heroku。
针对 Gollum 的答案并不合适,因为这里任何服务器都可以为静态生成的站点提供服务。无需托管 Gollum(或 Gollum 站点)本身。
这个问题现在已经过时了,但有些人仍然需要答案!
There is GitHub repository: heroku-buildpack-gollum-site that seem to do just what you want. It uses a modified version
of heroku-buildpack-php to install an Apache pack to heroku.
The answers targeted to Gollum are not appropriate, as here any server can serve the static generated site. No need to host Gollum (or Gollum-site) itself.
The question is old now, but some people can still need the answer!