2014.12.19-26
GitLab 是一個開放原始碼專案,可以用來架設 Git 版本管理伺服器,功能類似 GitHub。
下載 Omnibus package 安裝
直接下載新版安裝會有問題,要依指示步驟做更新:
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update.md
修改 GitLab 的 source 之後,執行下列命令可以讓修改生效:
sudo service nginx restart
GitLab 使用 Ruby on Rails 做為 web framework,Rails 預設的 Template 語法是 ERB (HTML with embedded Ruby),而 GitLab 是使用 Haml (HTML abstraction markup language) 做為 Template Engine。
How to customize GitLab to support OpenID authentication
列出目前的路徑設定:
sudo -u git bundle exec rake routes > ~/gitlab-routes.txt
# Edit config and replace gitlab_url
# with something like 'http://domain.com/'
sudo -u git -H editor /home/git/gitlab-shell/config.yml
# Make sure to change "localhost" to the fully-qualified domain name of your
# host serving GitLab where necessary
sudo -u git -H editor /home/git/gitlab/config/gitlab.yml