プロジェクト管理用に、Redmineを利用している。
勝手に、学会用、部局用、研究室用、個人用、と、サイトを作成した。
アップデートの手順を研究室用サイトのWikiに記録していたのだけれども、エラーが出てしまって、表示できなくなってしまった。つまり、アップデートできない。
ので、ここに記録しておく事にした。
ちなみに…2年ぶりの更新となる。
------------------------------ 参考サイト http://redmine.jp/guide/RedmineUpgrade/ ------------------------------ ファイルの展開等 ------------------------------ tar zxf /...../redmine-2.x.x.tar.gz mv redmine-old redmine_old ln -s redmine-2.x.x redmine cd redmine/ ------------------------------ 設定ファイルの複写 ------------------------------ cd config/ cp -p ../../redmine_old/config/database.yml . cp -p ../../redmine_old/config/configuration.yml . cp -p ../../redmine_old/config/additional_environment.rb . vi application.rb config.time_zone = 'Osaka' cd environments vi production.rb # Prepend all log lines with the following tags config.log_tags = [ :host, :remote_ip ] ------------------------------ files ディレクトリの複写 ------------------------------ ditto --rsrc ../redmine_old/files/ files/ ------------------------------ ------------------------------ sudo bundle install --without development test OR sudo bundle update ------------------------------ cf. ------------------------------ sudo rake generate_secret_token (in /usr/local/redmine-2.3.3) rake aborted! uninitialized constant Rake::DSL /usr/local/redmine-2.3.3/Rakefile:7 (See full trace by running task with --trace) sudo gem install rake -v 10.1.0 ------------------------------ 秘密鍵ファイルの生成 ------------------------------ sudo rake generate_secret_token ------------------------------ テーマの確認 ------------------------------ cd public/themes ditto --rsrc ../../../redmine_old/public/themes/farend_basic/ farend_basic/ ditto --rsrc ../../../redmine_old/public/themes/farend_fancy/ farend_fancy/ ------------------------------ SVNチェックアウトのアップグレード ------------------------------ svn update ------------------------------ ------------------------------ mkdir tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets # sudo chown -R 501:wheel . ------------------------------ データベースの更新 ------------------------------ sudo chown -R 501 log/ rake db:migrate RAILS_ENV="production" ------------------------------ プラグイン ------------------------------ cd plugins ditto --rsrc ../../redmine_old/plugins/redmine_hide_emails_by_default/ redmine_hide_emails_by_default/ ditto --rsrc ../../redmine_old/plugins/redmine_logs/ redmine_logs/ ditto --rsrc ../../redmine_old/plugins/redmine_wiki_extensions/ redmine_wiki_extensions/ sudo chown 501 ../Gemfile.lock rake redmine:plugins:migrate RAILS_ENV=production ------------------------------ cf. ------------------------------ % rake redmine:plugins:migrate RAILS_ENV=production (in /usr/local/redmine-2.4.2) Could not find gem 'simplecov-rcov (>= 0) ruby' in the gems available on this machine. Run `bundle install` to install missing gems. sudo gem install simplecov-rcov ------------------------------ クリーンナップ ------------------------------ rake tmp:cache:clear rake tmp:sessions:clear ------------------------------ アプリケーションサーバの再起動 ------------------------------ sudo apachectl graceful