IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    GitLab,头像不显示的问题

    Adamhuan发表于 2017-01-11 03:59:18
    love 0

    问题如下:
    gitlab_error_pic_1

    修改配置文件:/etc/gitlab/gitlab.rb

    [root@center-linux script]# cat /etc/gitlab/gitlab.rb | grep --color ^external_url
    external_url 'http://192.168.19.137'
    [root@center-linux script]# 
    [root@center-linux script]# cat /etc/gitlab/gitlab.rb | grep --color ^#external_url
    #external_url 'http://center-linux'
    [root@center-linux script]# 
    
    [root@center-linux script]# cat /etc/gitlab/gitlab.rb | grep --color gravatar
    # gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
    gitlab_rails['gravatar_plain_url'] = 'http://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
    [root@center-linux script]#

    如上,开放:
    gitlab_rails[‘gravatar_plain_url’] = ‘http://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon’
    即可。

    然后重新配置gitlab:
    1. gitlab-ctl reconfigure
    2. gitlab-rake cache:clear RAILS_ENV=production

    这样就可以了:
    gitlab_error_pic_2

    ————————————
    Done。



沪ICP备19023445号-2号
友情链接