user17551439
user17551439

Reputation: 21

Install GitLab community edition on ubuntu 20.04

I'm trying to install GitLab community edition on ubuntu 20.04 I've followed below commands:

sudo apt update
sudo apt-get install -y curl openssh-server ca-certificates
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce

I don't know what to do in command 5, how to edit the GitLab configuration file to set hostname and other parameters:

sudo vi /etc/gitlab/gitlab.rb

How to install Gitlab?

Upvotes: 1

Views: 1014

Answers (1)

VonC
VonC

Reputation: 1324188

Your point 5 (sudo vi /etc/gitlab/gitlab.rb) is the next logical step.

Change the external_url from http://example.gitlab.com to the local IP of your Ubuntu server, for instance http://192.168.1.131

In "Install and Configure Gitlab on Ubuntu ", you will find other settings regarding emails and email settings.
But for now, that is enough to start.

Once you have made your changes:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl status

If there is any error, check the integrity of your GitLab installation with

sudo gitlab-rake gitlab:env:info --trace

You can see other troubleshooting steps in "Gitlab not starting after upgrade to Ubuntu 18.04" (which should help even on a more recent Ubuntu).

Upvotes: 1

Related Questions