Skip to content

Instantly share code, notes, and snippets.

@kangear
Created November 7, 2014 09:50
Show Gist options
  • Save kangear/fbc970581c55d6e0a94a to your computer and use it in GitHub Desktop.
Save kangear/fbc970581c55d6e0a94a to your computer and use it in GitHub Desktop.
From 7ab79f39748021f34c886c8d8ed3834c26319930 Mon Sep 17 00:00:00 2001
From: kangear <[email protected]>
Date: Tue, 3 Sep 2013 15:02:32 +0800
Subject: Update installation.md
---
doc/install/installation.md | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/doc/install/installation.md b/doc/install/installation.md
index 6523961..b1dc9fa 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -251,7 +251,9 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
Download the init script (will be /etc/init.d/gitlab):
- sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
+ (see this http://blog.csdn.net/xiaobin_hlj80/article/details/10244967)
+ # sudo cp lib/support/init.d/gitlab /etc/init.d/gitlab
+ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlabhq/6-0-stable/lib/support/init.d/gitlab
sudo chmod +x /etc/init.d/gitlab
Make GitLab start on boot:
@@ -294,7 +296,9 @@ Nginx is the officially supported web server for GitLab. If you cannot or do not
Download an example site config:
- sudo cp lib/support/nginx/gitlab /etc/nginx/sites-available/gitlab
+ (see this http://blog.csdn.net/xiaobin_hlj80/article/details/10244967)
+ #sudo cp lib/support/nginx/gitlab /etc/nginx/sites-available/gitlab
+ sudo curl --output /etc/nginx/sites-available/gitlab https://raw.github.com/gitlabhq/gitlabhq/6-0-stable/lib/support/nginx/gitlab
sudo ln -s /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab
Make sure to edit the config file to match your setup:
--
1.9.3
From 4d4ff471144212668b507efd52010dda7c32ca66 Mon Sep 17 00:00:00 2001
From: kangear <[email protected]>
Date: Tue, 3 Sep 2013 17:05:31 +0800
Subject: Update installation.md
---
doc/install/installation.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/install/installation.md b/doc/install/installation.md
index b1dc9fa..f1cdbe8 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -217,7 +217,7 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
# Make sure to update username/password in config/database.yml.
# You only need to adapt the production settings (first part).
# If you followed the database guide then please do as follows:
- # Change 'root' to 'gitlab'
+ # Change 'root' to 'gitlab' (有两个root和密码 密码要加引号)
# Change 'secure password' with the value you have given to $password
# You can keep the double quotes around the password
sudo -u git -H editor config/database.yml
--
1.9.3
From 3c4c203e34d71c7bbd8ed2e9efa6b5c18cd82325 Mon Sep 17 00:00:00 2001
From: kangear <[email protected]>
Date: Tue, 3 Sep 2013 17:23:17 +0800
Subject: Update installation.md
---
doc/install/installation.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/install/installation.md b/doc/install/installation.md
index f1cdbe8..0dbe790 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -228,8 +228,13 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
## Install Gems
cd /home/git/gitlab
-
+ # 添加taobao源
+ sudo gem sources --remove http://rubygems.org/
+ sudo gem sources -a http://ruby.taobao.org/
+ sudo gem sources -l
sudo gem install charlock_holmes --version '0.6.9.4'
+ # 第一行修改为:source 'http://ruby.taobao.org/'
+ sudo -u git -H vim Gemfile
# For MySQL (note, the option says "without ... postgres")
sudo -u git -H bundle install --deployment --without development test postgres aws
--
1.9.3
From fb3d26698490917423ecb56a94e77d4194dea674 Mon Sep 17 00:00:00 2001
From: kangear <[email protected]>
Date: Wed, 4 Sep 2013 11:03:55 +0800
Subject: =?UTF-8?q?=E7=94=A8ssh=E6=9D=A5clone=20gitlabhq=E8=A7=A3=E5=86=B3?=
=?UTF-8?q?http=E5=8D=8F=E8=AE=AE=E5=AE=B9=E6=98=93=E4=B8=AD=E6=96=AD?=
=?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
doc/install/installation.md | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/doc/install/installation.md b/doc/install/installation.md
index 0dbe790..3c7a6fa 100644
--- a/doc/install/installation.md
+++ b/doc/install/installation.md
@@ -148,6 +148,19 @@ To setup the MySQL/PostgreSQL database and dependencies please see [`doc/install
# Clone GitLab repository
sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git gitlab
+
+ # 如果你和我一样网速不好,一直中断可以用ssh来传送(我尝试过离线下载,但是不行,离线下载的目录下没有.git目录)
+ root@kangear:/home/git# sudo -u git -H ssh-keygen -t rsa
+ # 将生成的公钥添加到你的github账号上 然后如下方法clone,不会像https协议那样会断掉
+ root@kangear:/home/git# sudo -u git -H git clone [email protected]:gitlabhq/gitlabhq.git gitlab
+ Cloning into 'gitlab'...
+ Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
+ Enter passphrase for key '/home/git/.ssh/id_rsa':
+ remote: Counting objects: 56120, done.
+ remote: Compressing objects: 100% (20220/20220), done.
+ remote: Total 56120 (delta 40774), reused 50006 (delta 35175)
+ Receiving objects: 100% (56120/56120), 23.04 MiB | 60 KiB/s, done.
+ Resolving deltas: 100% (40774/40774), done.
# Go to gitlab dir
cd /home/git/gitlab
--
1.9.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment