问题描述
/github.com/github/gollumrel =noreferrer> http://github.com/github/gollum这似乎是简单的Sinatra应用程序,因此,似乎应该很容易部署到Heroku。我似乎无法得到它的工作。主要是因为我几乎不知道Rake和config.ru文件。
甚至有可能将Gollum wiki部署到Heroku吗?如果是这样,我的config.ru文件需要什么样子?
更新/编辑
lib / gollum / frontend / app:
module Precious
class App< Sinatra :: Base
这会从bin / gollum中调用
需要'gollum / frontend / app'
Precious :: App.set(:gollum_path,gollum_path)
Precious :: App.run!(选项)
从heroku运行Gollum是不可能的。当然不是一个可编辑的wiki。 Heroku文件系统是只读的。您可能可以使用它来提供静态内容,但我甚至不确定。
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 Sinatra app, and as such, it seems like it should be easy to deploy to Heroku. I can't seem to get it to work. Mostly because I know next to nothing about Rake and config.ru files.
Is it even possible to deploy a Gollum wiki to Heroku? If so, what would my config.ru file need to look like?
Update/Edit
lib/gollum/frontend/app:
module Precious
class App < Sinatra::Base
This gets called from bin/gollum
require 'gollum/frontend/app'
Precious::App.set(:gollum_path, gollum_path)
Precious::App.run!(options)
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.
这篇关于将Gollum wiki部署到Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!