Commit cc0d550f4792b355f3bf0abe5bea67a99b26f596
1 parent
25d793ea
Exists in
spb-stable
and in
3 other branches
Add docs for upgrader script
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,28 @@ |
| 1 | +# GitLab upgrader | |
| 2 | + | |
| 3 | +GitLab Upgrader - ruby script that allows you easily upgrade GitLab to latest minor version. | |
| 4 | +Ex. it can update your application from 6.4 to latest GitLab 6 version (like 6.5.1). | |
| 5 | +You still need to create backup and manually restart GitLab but all other operations can be done by upgrade tool. | |
| 6 | + | |
| 7 | +### 0. Backup | |
| 8 | + | |
| 9 | + cd /home/git/gitlab | |
| 10 | + sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | |
| 11 | + | |
| 12 | +### 1. Stop server | |
| 13 | + | |
| 14 | + sudo service gitlab stop | |
| 15 | + | |
| 16 | +### 2. Run gitlab upgrade tool | |
| 17 | + | |
| 18 | + cd /home/git/gitlab | |
| 19 | + sudo -u git -H ruby script/upgrade.rb | |
| 20 | + | |
| 21 | + # it also supports -y option to avouid user input | |
| 22 | + # sudo -u git -H ruby script/upgrade.rb -y | |
| 23 | + | |
| 24 | + | |
| 25 | +### 3. Start application | |
| 26 | + | |
| 27 | + sudo service gitlab start | |
| 28 | + sudo service nginx restart | ... | ... |