project_management:redmine
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
project_management:redmine [2010/10/19 17:59] – aorth | project_management:redmine [2011/02/22 05:39] – [Updating Redmine from SVN] aorth | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Install dependencies ===== | ===== Install dependencies ===== | ||
- | ==== aptitude | + | ==== apt-get |
- | < | + | < |
- | ==== Download ruby gems ==== | + | ==== Ruby gems ==== |
- | Problems I faced: | + | < |
- | * DNS is screwed up for rubyforge.org and rubygems.org. | + | $ sudo gem install |
- | * rubyforge.org has old versions of some gems (rails!) | + | $ sudo gem install fastthread |
- | + | $ sudo gem install -v=0.4.2 i18n</ | |
- | You SHOULD be able to '' | + | |
- | < | + | |
- | 72.21.202.165 | + | |
- | Don't ask. I guess they are using the " | + | |
- | + | ||
- | < | + | |
- | $ wget http:// | + | |
- | $ wget http:// | + | |
- | $ wget http:// | + | |
- | $ wget http:// | + | |
- | $ wget http:// | + | |
- | + | ||
- | ==== Install gems ==== | + | |
- | Rake, for building gems: | + | |
- | < | + | |
- | Make sure you can execute the '' | + | |
- | < | + | |
- | # ln -s / | + | |
- | Continue installing gems: | + | |
- | < | + | |
- | # gem install fastthread-1.0.7.gem | + | |
- | # gem install mysql-2.8.1.gem | + | |
- | # gem install sqlite3-ruby-1.3.0.gem | + | |
- | # gem install rails-2.3.5.gem</ | + | |
===== Configure Redmine ===== | ===== Configure Redmine ===== | ||
Line 78: | Line 54: | ||
* Reference: http:// | * Reference: http:// | ||
- | * Also the guide on the [[http:// | + | * http:// |
- | === Install | + | === Enable |
- | < | + | < |
+ | $ sudo sh -c 'wget -q -O - http:// | ||
+ | $ sudo apt-get update</ | ||
=== Install the Apache module === | === Install the Apache module === | ||
- | Edit the invocation line of the passenger installer program to point to '' | + | < |
- | < | + | |
- | Run the installer: | + | |
- | < | + | |
=== Configure Apache settings === | === Configure Apache settings === | ||
- | Apache will serve Redmine via FastCGI | + | Apache will serve Redmine via Phusion Passenger, which doesn' |
- | + | ||
- | === Configure mod_rail.conf === | + | |
- | /// | + | |
- | < | + | |
- | PassengerRoot / | + | |
- | PassengerRuby / | + | |
=== Configure redmine.conf === | === Configure redmine.conf === | ||
Line 113: | Line 82: | ||
Link the Redmine installation to the web document root; make sure to use the same name as in your Apache configuration: | Link the Redmine installation to the web document root; make sure to use the same name as in your Apache configuration: | ||
< | < | ||
- | |||
- | === Fix dispatch.fcgi === | ||
- | Rename it and make sure its executable: | ||
- | < | ||
- | $ chmod 755 public/ | ||
- | |||
- | Edit the invocation line in the FastCGI script to make sure it points to your ruby version ('' | ||
- | < | ||
- | ... | ||
- | require "/ | ||
- | ...</ | ||
=== Fix permissions === | === Fix permissions === | ||
Line 132: | Line 90: | ||
< | < | ||
- | === Test the install === | + | ===== Test the install |
http:// | http:// | ||
Line 186: | Line 144: | ||
===== Updating Redmine from SVN ===== | ===== Updating Redmine from SVN ===== | ||
- | See the [[http:// | + | See the [[http:// |
- | < | + | < |
- | # 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: | + | rake db: |
- | # rake tmp: | + | rake tmp: |
- | # rake tmp: | + | rake tmp: |
- | # apache2ctl graceful</ | + | apache2ctl graceful</ |
+ | |||
+ | ===== Change local administrator password manually ===== | ||
+ | < | ||
+ | # RAILS_ENV=production ruby1.8 script/ |