Gollum-wiki从一开始就出错

时间:2015-04-03 16:47:26

标签: ruby-on-rails gollum-wiki

安装成功后我做了 sudo gollum --port 80并得到错误

 Gollum::InvalidGitRepositoryError at /
       Gollum::InvalidGitRepositoryError
         file: git_layer_grit.rb location: rescue in initialize line: 280
        BACKTRACE
        (expand)
        JUMP TO: GET POST COOKIES ENV
         /usr/lib/ruby/1.9.1/webrick/httpserver.rb in service
  si.service(req, res)
         /usr/lib/ruby/1.9.1/webrick/httpserver.rb in run
      server.service(req, res)
        /usr/lib/ruby/1.9.1/webrick/server.rb in block in start_thread
      block ? block.call(sock) : run(sock)

3 个答案:

答案 0 :(得分:3)

首先,您必须创建git存储库。

$ git init

$ gollum --port 80

祝你好运。

答案 1 :(得分:0)

尝试

gollum --port 80 --gollum-path /your/repo/directory

或者从你的git repo中运行命令

答案 2 :(得分:0)

您需要将git repo指定为gollum --port 80 /home/gollum/wiki 的参数,如下所示:

gollum --help

请参阅import boto3 sqs_client = boto3.client('sqs', aws_access_key_id=KEY, aws_secret_access_key=SECRET, region_name=REGION) while True: sqs_client.receive_message(QueueUrl=QUEUE_URL, WaitTimeSeconds=60) for message in msgs_response.get('Messages', []): deferred.defer(process_and_delete_message, message)