Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github 运行Gollum wiki会在_Github_Github Pages_Gollum Wiki - Fatal编程技术网

Github 运行Gollum wiki会在

Github 运行Gollum wiki会在,github,github-pages,gollum-wiki,Github,Github Pages,Gollum Wiki,刚在Ubuntu服务器11.10上安装了Gollum wiki,当我要启动它时,我发现以下错误: NoMethodError at / private method `settings' called for Precious::App:Class file: create.rb location: default_markup line: 44 要安装它,我运行了以下命令: sudo apt-get install rubygems sudo apt-get install libxslt-

刚在Ubuntu服务器11.10上安装了Gollum wiki,当我要启动它时,我发现以下错误:

NoMethodError at /
private method `settings' called for Precious::App:Class
file: create.rb location: default_markup line: 44
要安装它,我运行了以下命令:

sudo apt-get install rubygems
sudo apt-get install libxslt-dev libxml2-dev
sudo gem install nokogiri
sudo gem install gollum
git init myWiki
cd myWiki
gollum ("sudo gollum" fails with the same error)
想法

注:
如果我注释掉有问题的行,页面将加载Home.md进行编辑,然后我可以保存它。但是css样式和页面图形不会加载,我只看到一个格式不好的html页面。

我有一个类似的设置,我的设置很好,尽管我也安装了markdown gem:

gem install redcarpet
它可能以某种方式设置了默认标记语言。通过查看代码,似乎有两行代码可能会有所帮助。 在lib/gollum/frontend/app.rb中,我有一行:

set :default_markup, :markdown
在自述文件中,它谈到了运行您自己的rake应用程序,其中也有这样一句话:

Precious::App.set(:default_markup, :markdown) # set your favorite markup language

由于我对rake了解不多,我只建议进入app.rb文件,手动添加set:default_markup、:markdown或任何语言,我相信我已经安装了Sinatra 1.0,因此在安装gollum时,它没有安装最新版本的Sinatra。安装Sinatra-1.3.2修复了该问题。我现在已经安装了Sinatra 1.0和1.3.2


由于Sinatra升级,我的wiki页面的样式现在可以正常加载,即使在取消create.rb第44行的注释后,NoMethodError消息也会消失,尽管我不确定Sinatra是否修复了NoMethodError消息

我刚刚发现了这个链接,它似乎是相关的,也许我缺少了config.ru设置?