summaryrefslogtreecommitdiff
path: root/doc/update
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-19 17:27:30 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-19 17:27:30 +0300
commit827a0018a998e7100c91fad48df166c67fcf0e1b (patch)
tree54816552969ae21e82652b8cf964e1d49fc87941 /doc/update
parent3ba36df6c461bccd9f4426bc68f1678a57efe2e4 (diff)
downloadgitlab-ce-827a0018a998e7100c91fad48df166c67fcf0e1b.tar.gz
Keep update docs inside repo so people can submit PR
Diffstat (limited to 'doc/update')
-rw-r--r--doc/update/5.0-to-5.1.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/update/5.0-to-5.1.md b/doc/update/5.0-to-5.1.md
new file mode 100644
index 00000000000..438bc25672c
--- /dev/null
+++ b/doc/update/5.0-to-5.1.md
@@ -0,0 +1,42 @@
+## Release notes:
+
+* `unicorn` replaced with `puma`
+* merge request cached diff will be truncated
+
+### 1. stop server
+
+ sudo service gitlab stop
+
+### 2. get latest code
+
+```
+
+sudo -u git -H git fetch
+sudo -u git -H git checkout 5-1-stable
+
+```
+
+### 3. Install libs, migrations etc
+
+```
+sudo -u git -H cp config/puma.rb.example config/puma.rb
+
+
+sudo -u git -H bundle install --without development test postgres --deployment
+sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
+sudo -u git -H bundle exec rake migrate_merge_requests RAILS_ENV=production
+
+```
+
+### 4. Update init.d script with a new one
+
+```bash
+# init.d
+sudo rm /etc/init.d/gitlab
+sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/5-1-stable/init.d/gitlab
+sudo chmod +x /etc/init.d/gitlab
+```
+
+### 5. Start application
+
+ sudo service gitlab start