Ubuntu で Unicorn で動かす Redmine を 2.6 にアップデートしたときのメモ

October 28, 2014

RMagickに必要なパッケージインストール

RMagick系のパッケージが要るといわれたので入れておく。

1
# apt-get install graphicsmagick-libmagick-dev-compat libmagickcore-dev libmagickwand-dev

新しい Redmine の展開

新しい Redmine のパッケージをダウンロードして展開する。

前の場所から以下のファイルをコピーする。

以下のディレクトリ内のファイルを移動する。

お約束の手順

1
2
3
4
5
6
7
$ bundle install --path vendor/bundler
$ rake generate_secret_token
$ RAILS_ENV=production rake db:migrate
$ rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
$ rake db:migrate_plugins RAILS_ENV=production
$ rake tmp:cache:clear
$ rake tmp:sessions:clear

起動

1
$ bundle exec unicorn_rails -D -E production -c $APP_ROOT/config/unicorn.rb
Ubuntu Redmine

tilfin freelance software engineer