自定义的GitLab 头像无法正常显示以及URL总是指向localhost
自定义的GitLab 头像无法正常显示以及URL总是指向localhost
解决指向localhost的问题:
编辑gitlab的配置vi /etc/gitlab/gitlab.rb,修改external_url 参数值
[Mesogene@localhost ~]$ sudo vi /etc/gitlab/gitlab.rb ## Url on which GitLab will be reachable. ## For more details on configuring external_url see: ## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlab #external_url 'http://localhost' #注释掉,将localhost修改为你对应的iP或者域名 external_url 'http://10.10.10.152'
头像显示问题:
[Mesogene@localhost ~]$ sudo vi /etc/gitlab/gitlab.rb #把下面这一行的注释去掉即可 gitlab_rails['gravatar_plain_url'] = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon' [Mesogene@localhost ~]$ sudo gitlab-ctl reconfigure [Mesogene@localhost ~]$ sudo gitlab-rake cache:clear RAILS_ENV=production
如图:
更多GitLab相关教程见以下内容:
GitLab 的详细介绍:请点这里
GitLab 的下载地址:请点这里
相关推荐
cxin 2020-11-06
synshitou 2020-10-21
Topbeyond 2020-08-21
happyfreeangel 2020-07-27
白开水 2020-07-19
无风的雨 2020-07-08
贤时间 2020-07-06
wishli 2020-06-28
小信 2020-06-21
leehbhs 2020-06-20
happyfreeangel 2020-06-18
83284950 2020-06-17
冯冯领队 2020-06-16
就是那个胖子 2020-06-14
83284950 2020-06-14
LiHansiyuan 2020-06-14
fcds00 2020-06-11
就是那个胖子 2020-06-11