Question

I have set up gitlab as described in this tutorial: https://github.com/gitlabhq/gitlabhq/blob/6-4-stable/doc/install/installation.md

Now I need to change the port unicorn is listening to. I have changed the unicorn.rb file. However, unicorn is still trying to connect to the 8080 port.

What am I missing?

Was it helpful?

Solution

You need to check the logs when restarting Unicorn (as in log/unicorn.stderr.log), after changing config/unicorn.rb.

You will see the root cause (like for instance issue 2236)

As in issue 4928, make sure unicorn was stopped in the first place (same in issue 5451).


Update Q4 2017 (3 years later)

Markus Piipari reports in this answer using wiht GitLab 10.4 the settings:

unicorn['port'] = 8081
gitlab_workhorse['auth_backend'] = "http://localhost:8081"

Then running:

sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart

That should be enough change the unicorn port.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top