侧边栏壁纸
博主头像
最闪啊姚凌武!博主等级

天下武功,唯快不破

  • 累计撰写 293 篇文章
  • 累计创建 34 个标签
  • 累计收到 10 条评论

目 录CONTENT

文章目录

gtiLab 搭建过程遇到的问题

姚凌武
2015-03-05 / 0 评论 / 0 点赞 / 11 阅读 / 2515 字
1)tag只显示tag数,不显示具体tag
remote: /home/git/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.8.0.pre/lib/bundler/shared_helpers.rb:85: warning: Insecure world writable dir /home/git/ruby/lib/ruby/gems/2.1.0 in PATH, mode 040777
remote: /home/git/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.8.0.pre/lib/bundler/shared_helpers.rb:85: warning: Insecure world writable dir /home/git/ruby/lib/ruby/gems/2.1.0 in PATH, mode 040777
remote: /home/git/ruby/lib/ruby/gems/2.1.0/gems/bundler-1.8.0.pre/lib/bundler/shared_helpers.rb:85: warning: Insecure world writable dir /home/git/ruby/lib/ruby/gems/2.1.0 in PATH, mode 040777
remote: GitLab: An unexpected error occurred (redis-cli returned 1).
问题原因:gitlib-shell 配置问题(注释掉socket
redis:
bin: /opt/bitnami/redis/bin/redis-cli
host: 127.0.0.1
port: 6379
# socket: /tmp/redis.socket # Only define this if you want to use sockets
namespace: resque:gitlab
 
2)网页无法浏览代码
Completed 500 Internal Server Error in 40ms

ActionView::Template::Error ('nil' is not an ActiveModel-compatible object. It must implement :to_partial_path.):
    17:
    18: %ul.blob-commit-info.bs-callout.bs-callout-info.hidden-xs
    19:   - blob_commit = @repository.last_commit_for_path(@commit.id, @blob.path)
    20:   = render blob_commit, project: @project
    21:
    22: %div#tree-content-holder.tree-content-holder
    23:   %article.file-holder
  app/views/projects/blob/_blob.html.haml:20:in `_app_views_projects_blob__blob_html_haml___1564827466898135987_69864575302980'
  app/views/projects/blob/show.html.haml:5:in `_app_views_projects_blob_show_html_haml__518774741594640230_69864575156440'
 
问题原因:系统存在两个版本的git v1.7.1 与2.1.2

git: /usr/bin/git /usr/local/bin/git

统一替换成v2.1.1,即解决了问题。


]]>
0

评论区