Redmine †書きかけの記事 事前作業 †Homebrewのインストール(Macで未インストールの場合) ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 必要なgem等のインストール brew install imagemagick gem install pkg-config brew install pkg-config gem install rmagick Redmineのインストール †cd /path_to_redmine_install_dir/ git clone https://github.com/redmine/redmine.git . DB(MySQL)の設定 †mysql -u root -p CREATE DATABASE redmine CHARACTER SET UTF8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; FLUSH PRIVILEGES; Redmineの設定 †DB設定ファイルを作成する(サンプルをコピー) cd /path_to_redmine_install_dir/config cp database.yml.example database.yml database.yml の編集(ユーザ、パスワードを上記で作成したものに変更する) production: adapter: mysql2 database: redmine host: localhost username: redmine password: "password" encoding: utf8 ・ ・ 必要なgemのインストール bundle install --path gems --without development test プロダクションモードで動作するように環境変数を設定 RAILS_ENV=production migrateの実行 bundle exec rake db:migrate redmineをスタンドアロンで起動 rails server -e production |