Project

General

Profile

Upgrade » History » Revision 4

Revision 3 (Anthony Mallet, 2014-01-08 17:55) → Revision 4/6 (Anthony Mallet, 2014-01-09 11:51)

h1. Upgrade procedure 

 Pull updates from the local repository (<code>laas</code> branch). 
 <pre> 
 # su - redmine 
 % # cd src/laas (or src/openrobots) 
 % # git pull 
 </pre> 

 Install new gems, if any. 
 <pre> 
 % # bundle install 
 </pre> 
 This may fail, because of conflicting packages. <code>bundle update</code> should fix that. 

 Then, migrate database (might be a no-op). 
 <pre> 
 % # rake db:migrate RAILS_ENV=production 
 % # rake redmine:plugins:migrate RAILS_ENV=production 
 </pre> 

 It may be desirable to recompile apache passenger module, if <code>bundle install</code> upgraded it. This is however optional: the old version will still work without any action, if the old gem is not cleaned (see below). 
 <pre> 
 % passenger-install-apache2-module 
 % vi /etc/httpd/conf.d/laas.conf (or openrobots.conf) for the new passenger module path 
 </pre> 

 It may also be desirable to clean old gems 
 <pre> 
 % bundle clean 
 </pre> 

 Restart passenger. 
 <pre> 
 % # touch tmp/restart.txt 
 </pre>