The company was using SVN for project management, because SVN's code base is centrally managed, does not support offline updates, and later moved SVN to git, where Git is a distributed system that allows users to view, write, and submit code from a git server. Later, because Git does not have a Web page, all operations are in the background operation, in contrast, Gitlab is a high-end brim on the level of GIT project management software, users can add through the Web page, delete items | users | Sshkey and so on, and can be viewed through the browser, modify the source code.
Gitlab Introduction: Gitlab is an Open-source project management program developed with Ruby on Rails that can be accessed through a web interface to open or private projects. It has a similar function with GitHub to explore source code, manage defects, and annotate. Gitlab Official documentation Support Debian/ubuntu system, my gitlab server is ubuntu-12.04.2, please check Gitlab official installation document for specific installation.
1 Create a Gitlabhq_production database and authorize it on MySQL.
#创建gitlabhq_production数据库并授权
CREATE DATABASE IF not EXISTS ' gitlabhq_production ' DEFAULT CHARACTER SET ' UTF8 ' COLLATE
' utf8_unicode_ci ';
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER on
' gitlabhq_production '. * to ' Gitlab ' @ 192.168.1.230 ' identified by ' gitlab!@# ';
#修改gitlab数据库配置文件
cd Gitlab
sudo-u git cp config/database.yml.mysql config/database.yml
sudo cat config/ Database.yml
production:
adapter:mysql2
encoding:utf8
reconnect:false
Database: Gitlabhq_production
pool:10
username:gitlab
Password: "gitlab!@#"
host:192.168.1.243
Initialize Gitlab database
sudo-u git-h chmod o-rwx config/database.yml sudo-u git-h bundle
exec rake Gitlab:setup rails_e Nv=production
2 Gitlab default installed username: admin@local.host, Password: 5ivel!fe, users need to modify the password after the first landing.
3 Gitlab Mail Reminder configuration, create account, add SSH key when there will be e-mail alerts to users.
Modify the global configuration file Git/.gitconfig file, where the email is the email address of the Gitlab email.
Configure the Gitlab SMTP service for sending mail, gitlab/config/environments/production.rb.
When an administrator creates an account for a user, the user's mailbox automatically receives a message sent by Gitlab.