Commit 827a0018a998e7100c91fad48df166c67fcf0e1b
1 parent
3ba36df6
Exists in
master
and in
4 other branches
Keep update docs inside repo so people can submit PR
Showing
1 changed file
with
42 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1,42 @@ | @@ -0,0 +1,42 @@ | ||
| 1 | +## Release notes: | ||
| 2 | + | ||
| 3 | +* `unicorn` replaced with `puma` | ||
| 4 | +* merge request cached diff will be truncated | ||
| 5 | + | ||
| 6 | +### 1. stop server | ||
| 7 | + | ||
| 8 | + sudo service gitlab stop | ||
| 9 | + | ||
| 10 | +### 2. get latest code | ||
| 11 | + | ||
| 12 | +``` | ||
| 13 | + | ||
| 14 | +sudo -u git -H git fetch | ||
| 15 | +sudo -u git -H git checkout 5-1-stable | ||
| 16 | + | ||
| 17 | +``` | ||
| 18 | + | ||
| 19 | +### 3. Install libs, migrations etc | ||
| 20 | + | ||
| 21 | +``` | ||
| 22 | +sudo -u git -H cp config/puma.rb.example config/puma.rb | ||
| 23 | + | ||
| 24 | + | ||
| 25 | +sudo -u git -H bundle install --without development test postgres --deployment | ||
| 26 | +sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production | ||
| 27 | +sudo -u git -H bundle exec rake migrate_merge_requests RAILS_ENV=production | ||
| 28 | + | ||
| 29 | +``` | ||
| 30 | + | ||
| 31 | +### 4. Update init.d script with a new one | ||
| 32 | + | ||
| 33 | +```bash | ||
| 34 | +# init.d | ||
| 35 | +sudo rm /etc/init.d/gitlab | ||
| 36 | +sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/5-1-stable/init.d/gitlab | ||
| 37 | +sudo chmod +x /etc/init.d/gitlab | ||
| 38 | +``` | ||
| 39 | + | ||
| 40 | +### 5. Start application | ||
| 41 | + | ||
| 42 | + sudo service gitlab start |