mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 00:26:07 +10:00
Merge branch '6-0-stable' of https://github.com/gitlabhq/gitlabhq
This commit is contained in:
@@ -250,6 +250,10 @@ class MergeRequest < ActiveRecord::Base
|
||||
(source_project.root_ref? source_branch) || for_fork?
|
||||
end
|
||||
|
||||
def project
|
||||
target_project
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def dump_commits(commits)
|
||||
|
||||
@@ -36,17 +36,25 @@ sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create
|
||||
```bash
|
||||
cd /home/git/gitlab
|
||||
sudo -u git -H git fetch
|
||||
sudo -u git -H git checkout 6-0-dev
|
||||
sudo -u git -H git checkout 6-0-stable
|
||||
```
|
||||
|
||||
### 3. Install additional packages
|
||||
### 3. Update gitlab-shell
|
||||
|
||||
```bash
|
||||
cd /home/git/gitlab-shell
|
||||
sudo -u git -H git fetch
|
||||
sudo -u git -H git checkout v1.7.0
|
||||
```
|
||||
|
||||
### 4. Install additional packages
|
||||
|
||||
```bash
|
||||
# For reStructuredText markup language support install required package:
|
||||
sudo apt-get install python-docutils
|
||||
```
|
||||
|
||||
### 4. Install libs, migrations, etc.
|
||||
### 5. Install libs, migrations, etc.
|
||||
|
||||
```bash
|
||||
cd /home/git/gitlab
|
||||
@@ -65,14 +73,14 @@ sudo -u git -H bundle exec rake migrate_inline_notes RAILS_ENV=production
|
||||
|
||||
```
|
||||
|
||||
### 5. Update config files
|
||||
### 6. Update config files
|
||||
|
||||
Note: We switched from Puma in GitLab 5.4 to unicorn in GitLab 6.0.
|
||||
|
||||
* Make `/home/git/gitlab/config/gitlab.yml` the same as https://github.com/gitlabhq/gitlabhq/blob/master/config/gitlab.yml.example but with your settings.
|
||||
* Make `/home/git/gitlab/config/unicorn.rb` the same as https://github.com/gitlabhq/gitlabhq/blob/master/config/unicorn.rb.example but with your settings.
|
||||
|
||||
### 6. Update Init script
|
||||
### 7. Update Init script
|
||||
|
||||
```bash
|
||||
sudo rm /etc/init.d/gitlab
|
||||
@@ -80,12 +88,12 @@ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlabhq/m
|
||||
sudo chmod +x /etc/init.d/gitlab
|
||||
```
|
||||
|
||||
### 7. Start application
|
||||
### 8. Start application
|
||||
|
||||
sudo service gitlab start
|
||||
sudo service nginx restart
|
||||
|
||||
### 8. Check application status
|
||||
### 9. Check application status
|
||||
|
||||
Check if GitLab and its environment are configured correctly:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user