Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
- Loading branch information
1 parent
25d793e
commit cc0d550
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# GitLab upgrader | ||
|
||
GitLab Upgrader - ruby script that allows you easily upgrade GitLab to latest minor version. | ||
Ex. it can update your application from 6.4 to latest GitLab 6 version (like 6.5.1). | ||
You still need to create backup and manually restart GitLab but all other operations can be done by upgrade tool. | ||
|
||
### 0. Backup | ||
|
||
cd /home/git/gitlab | ||
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | ||
|
||
### 1. Stop server | ||
|
||
sudo service gitlab stop | ||
|
||
### 2. Run gitlab upgrade tool | ||
|
||
cd /home/git/gitlab | ||
sudo -u git -H ruby script/upgrade.rb | ||
|
||
# it also supports -y option to avouid user input | ||
# sudo -u git -H ruby script/upgrade.rb -y | ||
|
||
|
||
### 3. Start application | ||
|
||
sudo service gitlab start | ||
sudo service nginx restart |