Deploy Gollum wiki to Heroku

前端 未结 3 2039
时光取名叫无心
时光取名叫无心 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: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.

提交回复
热议问题