* Redmine [#k6ed98a7]
#setlinebreak(on)

&color(red){書きかけの記事};

** 事前作業 [#n2962f1b]
Homebrewのインストール(Macで未インストールの場合)
#mycode(){{
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}}

必要なgem等のインストール
#mycode(){{
brew install imagemagick
gem install pkg-config
brew install pkg-config
gem install rmagick
}}

** Redmineのインストール [#ubf51efa]
#mycode(){{
cd /path_to_redmine_install_dir/
git clone https://github.com/redmine/redmine.git .
}}

** DB(MySQL)の設定 [#c3ce6655]
#mycode(){{
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の設定 [#i498f6a8]
DB設定ファイルを作成する(サンプルをコピー)
#mycode(){{
cd /path_to_redmine_install_dir/config
cp database.yml.example database.yml
}}

database.yml の編集(ユーザ、パスワードを上記で作成したものに変更する)
#mycode(){{
production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "password"
  encoding: utf8


}}

必要なgemのインストール
#mycode(){{
bundle install --path gems --without development test
}}

// 鍵の作成
// #mycode(){{
// bundle exec rake generate_secret_token
// }}

プロダクションモードで動作するように環境変数を設定
#mycode(){{
RAILS_ENV=production
}}

migrateの実行
#mycode(){{
bundle exec rake db:migrate
}}

redmineをスタンドアロンで起動
#mycode(){{
rails server -e production
}}


// http://qiita.com/janus_wel/items/06dae0dec1ff1a886d54


トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS