2014-12-05 39 views
1

我想讓gitlab在8080端口上運行,因爲我有在端口80上運行的Apache,並且想要爲gitlab設置代理。Gitlab-omnibus未在8080上運行

但安裝gitlab使用的命令後:

wget https://downloads-packages.s3.amazonaws.com/debian-7.6/gitlab_7.5.2-omnibus.5.2.1.ci-1_amd64.deb 
sudo apt-get install openssh-server 
sudo apt-get install postfix 
sudo dpkg -i gitlab_7.5.2-omnibus.5.2.1.ci-1_amd64.deb 

和我改變/etc/gitlab/gitlab.rb包含:

external_url "http://gitlab.mydomain.com:8080" 

和執行的命令:

sudo gitlab-ctl reconfigure 
sudo gitlab-ctl restart 

但我仍然無法達到「http://gitlab.mydomain.com:8080」 gitlab我i co沒有找到解決方案來解決我的問題。

回答

1

我的問題的解決方案是,我沒有安裝git。 這個我,因爲我遵循https://about.gitlab.com/downloads/ 使用dfebian 7的說明,因爲那是我的操作系統。它從來沒有說過,我必須在安裝gitlab之前在系統上安裝git。 (這是我的錯假設gitlab將安裝此對我來說,這是一個容易解決)

+0

git [已安裝](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/config/software/git.rb)與包,我不'我認爲這是原因。 – axil 2014-12-05 21:18:57

1

你可能要檢查你的gitlab.yml config file

## GitLab settings 
gitlab: 
## Web server settings (note: host is the FQDN, do not include http://) 
host: localhost 
port: 80 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details 

端口更改爲8080應該有所幫助。

+0

感謝您的答覆,但在gitlab.yml端口已經改爲端口:8080 – 2014-12-05 10:18:03

+0

如果端口已設置爲'8080'在'gitlab.yml'運行'gitlab-CTL重新配置'爲了應用此參數 – PierreF 2014-12-05 11:16:00