Project

General

Profile

Actions

Upgrade » History » Revision 4

« Previous | Revision 4/6 (diff) | Next »
Anthony Mallet, 2014-01-09 11:51


Upgrade procedure

Pull updates from the local repository (laas branch).

# su - redmine
% cd src/laas (or src/openrobots)
% git pull

Install new gems, if any.

% bundle install

This may fail, because of conflicting packages. bundle update should fix that.

Then, migrate database (might be a no-op).

% rake db:migrate RAILS_ENV=production
% rake redmine:plugins:migrate RAILS_ENV=production

It may be desirable to recompile apache passenger module, if bundle install upgraded it. This is however optional: the old version will still work without any action, if the old gem is not cleaned (see below).

% passenger-install-apache2-module
% vi /etc/httpd/conf.d/laas.conf (or openrobots.conf) for the new passenger module path

It may also be desirable to clean old gems

% bundle clean

Restart passenger.

% touch tmp/restart.txt

Updated by Anthony Mallet almost 11 years ago · 6 revisions