Tag: CentOS5/Redmine
$ sudo yum install sqlite3-devel
$ tar jxvpf ruby-1.8.7-p334.tar.bz2 $ cd ruby-1.8.7-p334 $ ./configure $ make $ sudo make install
$ tar zxvpf rubygems-1.7.1.tgz $ cd rubygems-1.7.1 # ruby setup.rb
# gem update --system
# gem update --system 1.4.2
$ sudo gem install sqlite3-ruby --version=1.2.5
$ sudo gem install rake
$ sudo gem install -v=0.4.2 i18n
$ sudo gem install rails --version 2.3.11
production: adapter: sqlite3 database: db/redmine.db timeout: 5000
$ rake config/initializers/session_store.rb
$ rake db:migrate RAILS_ENV=production
$ rake redmine:load_default_data RAILS_ENV=production
$ script/server -e production
# gem install passenger
# passenger-install-apache2-module
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.5 PassengerRuby /usr/local/bin/ruby
ln -s /home/redmine/public_html /var/www/html/redmine
$ sudo gem install mongrel $ sudo gem install mongrel_cluster
$ mongrel_rails -e production
# mongrel_rails cluster::configure -e production
--- log_file: log/mongrel.log port: 3000 cwd: /home/redmine environment: production pid_file: tmp/pids/mongrel.pid servers: 2
# mkdir /etc/mongrel_cluster # ln -s /home/redmine/config/mongrel_cluster.yml /etc/mongrel_cluster/redmine.yml
# cp /usr/local/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/resources/mongrel_cluster /etc/init.d/
# sudo chmod +x /etc/init.d/mongrel_cluster
# sudo /sbin/chkconfig --level 345 mongrel_cluster on
gem 'rack', '~> 1.2.1'
Redmine - Defect #7516: Redmine does not work with RubyGems 1.5.0 - Redmineによるとconfig/environment.rbに次のコードを追加する。
if Gem::VERSION >= "1.3.6" module Rails class GemDependency def requirement r = super (r == Gem::Requirement.default) ? nil : r end end end end
verbose = $VERBOSE $VERBOSE = nil @vendor_source_index = Gem::SourceIndex.new(vendor_gems) $VERBOSE = verbose