From 7fee7361c7f09decc096ef980f2926fdb024c84e Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 28 May 2013 17:46:55 -0400 Subject: [PATCH] documentation: add instructions on updating --- docs/INSTALL-ubuntu.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/INSTALL-ubuntu.md b/docs/INSTALL-ubuntu.md index 2d7be5e69fd..b388ea30627 100644 --- a/docs/INSTALL-ubuntu.md +++ b/docs/INSTALL-ubuntu.md @@ -249,3 +249,20 @@ Add the following line: @reboot RUBY_GC_MALLOC_LIMIT=900000000 RAILS_ROOT=~/discourse RAILS_ENV=production NUM_WEBS=4 bluepill --no-privileged -c ~/.bluepill load ~/discourse/config/discourse.pill Congratulations! You've got Discourse installed and running! + +## Updating Discourse + + # Run these commands as the discourse user + bluepill stop + # Pull down the latest release + cd discourse + git checkout master + git pull + git fetch --tags + # To run on the latest version instead of bleeding-edge: + #git checkout latest-release + bundle install --deployment + RUBY_GC_MALLOC_LIMIT=900000000 RAILS_ENV=production bundle exec rake db:migrate + RUBY_GC_MALLOC_LIMIT=900000000 RAILS_ENV=production bundle exec rake assets:precompile + cd + bluepill start