How do we change the URL of a working GitLab install?

前端 未结 4 2061
时光说笑
时光说笑 2020-11-30 17:41

I have set up and we are running a default install of GitLab v6.0.1 (we\'re about to upgrade as well). It was a \"Production\" setup, following this guide precisely to the l

4条回答
  •  时光说笑
    2020-11-30 18:26

    GitLab Omnibus

    For an Omnibus install, it is a little different.

    The correct place in an Omnibus install is:

    /etc/gitlab/gitlab.rb
        external_url 'http://gitlab.example.com'
    

    Finally, you'll need to execute sudo gitlab-ctl reconfigure and sudo gitlab-ctl restart so the changes apply.


    I was making changes in the wrong places and they were getting blown away.

    The incorrect paths are:

    /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
    /var/opt/gitlab/.gitconfig
    /var/opt/gitlab/nginx/conf/gitlab-http.conf
    

    Pay attention to those warnings that read:

    # This file is managed by gitlab-ctl. Manual changes will be
    # erased! To change the contents below, edit /etc/gitlab/gitlab.rb
    # and run `sudo gitlab-ctl reconfigure`.
    

提交回复
热议问题