User Tools

Site Tools


project_management:redmine

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
project_management:redmine [2011/01/26 14:04] aorthproject_management:redmine [2011/02/22 05:39] – [Updating Redmine from SVN] aorth
Line 8: Line 8:
 ===== Install dependencies ===== ===== Install dependencies =====
 ==== apt-get ==== ==== apt-get ====
-<code>apt-get install build-essential ruby rubygems libopenssl-ruby libopenssl-ruby libsqlite3-dev</code>+<code>$ sudo apt-get install build-essential ruby rubygems libopenssl-ruby libsqlite3-dev</code>
  
 ==== Ruby gems ==== ==== Ruby gems ====
-Rake, for building gems: 
 <code>$ sudo gem install rails -v=2.3.5 <code>$ sudo gem install rails -v=2.3.5
 $ sudo gem install sqlite3 $ sudo gem install sqlite3
Line 55: Line 54:
  
   * Reference: http://www.modrails.com/install.html   * Reference: http://www.modrails.com/install.html
-  * Also the guide on the [[http://wiki.archlinux.org/index.php/Redmine_setup#Apache_w.2F_Phusion_Passenger|Arch Linux wiki]]+  * http://wiki.brightbox.co.uk/docs:phusion-passenger
  
-=== Install the gem === +=== Enable the repository === 
-<code># gem install passenger</code>+<code>$ sudo sh -c 'echo "deb http://apt.brightbox.net lucid main" > /etc/apt/sources.list.d/phusion_passenger.list' 
 +$ sudo sh -c 'wget -q -O - http://apt.brightbox.net/release.asc | apt-key add -' 
 +$ sudo apt-get update</code>
  
 === Install the Apache module === === Install the Apache module ===
-Edit the invocation line of the passenger installer program to point to ''ruby1.8'' instead of ''ruby'': +<code>$ sudo apt-get install libapache2-mod-passenger</code>
-<code># vim /var/lib/gems/1.8/gems/passenger-2.2.14/bin/passenger-install-apache2-module</code> +
-Run the installer: +
-<code># /var/lib/gems/1.8/gems/passenger-2.2.14/bin/passenger-install-apache2-module</code>+
  
 === Configure Apache settings === === Configure Apache settings ===
 Apache will serve Redmine via Phusion Passenger, which doesn't rely on CGI or FastCGI!  Make sure the .htaccess in ''redmine/public'' is not enabled or it might try to serve Redmine via ''dispatch.cgi''. Apache will serve Redmine via Phusion Passenger, which doesn't rely on CGI or FastCGI!  Make sure the .htaccess in ''redmine/public'' is not enabled or it might try to serve Redmine via ''dispatch.cgi''.
- 
-=== Configure mod_rail.conf === 
-///etc/apache2/conf.d/mod_rails.conf//: 
-<file>LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.14/ext/apache2/mod_passenger.so 
-PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.14 
-PassengerRuby /usr/bin/ruby1.8</file> 
  
 === Configure redmine.conf === === Configure redmine.conf ===
Line 98: Line 90:
 <code># apache2ctl graceful</code> <code># apache2ctl graceful</code>
  
-=== Test the install ===+===== Test the install =====
  
 http://ip/redmine http://ip/redmine
Line 152: Line 144:
  
 ===== Updating Redmine from SVN ===== ===== Updating Redmine from SVN =====
-See the [[http://www.redmine.org/wiki/redmine/RedmineUpgrade#Option-2-Upgrading-from-a-SVN-checkout|the official instructions]] on upgrading via SVN.  Also done below on a real instance, 1.0.0 -> 1.0.1: +See the [[http://www.redmine.org/wiki/redmine/RedmineUpgrade#Option-2-Upgrading-from-a-SVN-checkout|the official instructions]] on upgrading via SVN.  Also done below as root on a real instance, 1.0.0 -> 1.0.1: 
-<code>cd /opt +<code>cd /opt 
-tar cjf redmine_before_1.0.1.tar.bz2 redmine/ +tar cjf redmine_before_1.0.1.tar.bz2 redmine/ 
-cd redmine +cd redmine 
-svn update +svn update 
-rake db:migrate RAILS_ENV=production +rake db:migrate RAILS_ENV=production 
-rake db:migrate_plugins RAILS_ENV=production +rake db:migrate_plugins RAILS_ENV=production 
-rake tmp:cache:clear +rake tmp:cache:clear 
-rake tmp:sessions:clear +rake tmp:sessions:clear 
-apache2ctl graceful</code>+apache2ctl graceful</code>
  
 ===== Change local administrator password manually ===== ===== Change local administrator password manually =====
 <code># cd /opt/redmine <code># cd /opt/redmine
 # RAILS_ENV=production ruby1.8 script/runner 'user = User.find(:first, :conditions => {:admin => true}) ; user.password, user.password_confirmation = "my_password"; user.save!'</code> # RAILS_ENV=production ruby1.8 script/runner 'user = User.find(:first, :conditions => {:admin => true}) ; user.password, user.password_confirmation = "my_password"; user.save!'</code>