Commit 6d4f5cd9011af5c8d86e771aea4388e8807d737e
Exists in
spb-stable
and in
2 other branches
Merge pull request #6836 from terrywang/upgrader-doc
Break up the long upgrade one liner & add Bash syntax highlighting
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
doc/update/upgrader.md
@@ -46,4 +46,8 @@ If all items are green, then congratulations upgrade is complete! | @@ -46,4 +46,8 @@ If all items are green, then congratulations upgrade is complete! | ||
46 | 46 | ||
47 | You've read through the entire guide, and probably did all the steps manually. Here is a one liner for convenience, the next time you upgrade: | 47 | You've read through the entire guide, and probably did all the steps manually. Here is a one liner for convenience, the next time you upgrade: |
48 | 48 | ||
49 | - cd /home/git/gitlab; sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; sudo service gitlab stop; sudo -u git -H ruby script/upgrade.rb -y; sudo service gitlab start; sudo service nginx restart; sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production | 49 | +```bash |
50 | +cd /home/git/gitlab; sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; \ | ||
51 | + sudo service gitlab stop; sudo -u git -H ruby script/upgrade.rb -y; sudo service gitlab start; \ | ||
52 | + sudo service nginx restart; sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production | ||
53 | +``` |