234rfe 发表于 2015-11-18 08:58:51

快速安装部署gitlab中文版

当前版本控制系统主要分为两大类,集中式版本控制系统和分布式版本控制系统。
GitLab 是一个用于仓库管理系统的开源项目。使用Git作为代码管理工具,并在此基础上搭建起来的web服务。

gitlab一键安装包下载地址:https://bitnami.com/stack/gitlab/installer


安装命令如下,在终端下运行:


1
./bitnami-gitlab-8.1.3-0-linux-x64-installer.run




如在桌面运行会弹出如下的安装界面:

如没有安装桌面也可在命令行模式下进行安装。

安装完成后是英文版本的,接下来下载汉化版本,下载地址:https://gitlab.com/larryli/gitlab

汉化需要拷贝汉化版本如下文件到英文版本中:


1
#\cp -Rvf /homt/git.zh/gitlab/app/* /opt/gitlab-8.1.3-0/apps/gitlab/htdocs/app/





1
#\cp /home/git.zh/gitlab/config/locale/zh.yml /opt/gitlab-8.1.3-0/apps/gitlab/htdocs/config/locales/





1
#\cp /home/git.zh/gitlab/config/locale/devise.zh.yml /opt/gitlab-8.1.3-0/apps/gitlab/htdocs/config/locales/





1
#\cp /home/git.zh/gitlab/config/locale/doorkeeper.zh.yml /opt/gitlab-8.1.3-0/apps/gitlab/htdocs/config/locales/





1
#\cp /home/git.zh/gitlab/config/locale/kaminari.zh.yml /opt/gitlab-8.1.3-0/apps/gitlab/htdocs/config/locales/





配置外部邮箱:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#vi /opt/gitlab-8.1.3-0/apps/gitlab/htdocs/config/environments/productions.rb
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
    :address => "smtp.163.com",
    :port => "25",
    :domain => "smtp.163.com",
    :authentication => :plain,
    :user_name => "abc@163.com",
    :password => "rtqkgnibadkxxrdy",
    :enable_starttls_auto => true
}
#cd /opt/gitlab-8.1.3-0/apps/gitlab/htdocs/config/initializers
#cp smtp_settings.rb.sample smtp_settings.rb
#vi smtp_settings.rb
gitlab.com/gitlab-org/omnibus-gitlab/merge_requests

if Rails.env.production?
Gitlab::Application.config.action_mailer.delivery_method = :smtp

ActionMailer::Base.smtp_settings = {
    address: "smtp.163.com",
    port: 25,
    user_name: "abc@163.com",
    password: "rtqkgnibadkxxrdy",
    domain: "163.com",
    authentication: :login,
    enable_starttls_auto: true
    #openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options
}
end






页: [1]
查看完整版本: 快速安装部署gitlab中文版