Deploy Gollum wiki to Heroku

前端 未结 3 2041
时光取名叫无心
时光取名叫无心 2021-02-13 22:32

Gollum is \"A simple, Git-powered wiki with a sweet API and local frontend.\"

It\'s hosted on GitHub: http://github.com/github/gollum

It seems to be a simple Si

相关标签:
3条回答
  • 2021-02-13 22:50

    It's not possible to run Gollum from heroku. Certainly not as an editable wiki. The Heroku filesystem is read only. You might be able to use it to serve static content, but I'm not sure about that even.

    0 讨论(0)
  • 2021-02-13 22:54

    As already mentioned, the problem is that the heroku filesystem is readonly. But the real problem is underlying grit, which relies on the git command line tool. You can't work with remote repositories without cloning them to the local directory.

    See the related question.

    So, the solution will be to clone the repo to temporary path, work there and push changes to the remote repo. There is a much overhead: you need to clone repo every time a user browse a wiki page.

    Another solution that comes to mind is making some API for grit that will enable to work with git remotely.

    Yet another solution is to work with git over ssh.

    0 讨论(0)
  • 2021-02-13 22:58

    http://docs.heroku.com/rack#sinatra

    require 'hello'
    run Sinatra::Application
    

    if it is a sinatra app, that should do it for you.

    0 讨论(0)
提交回复
热议问题