もう一回、redMineを試す

息子にメガネをぶち壊されて、画面が良く見えない・・・
 
昨日の日記redMineには根本的な問題があったかもしれない。
 

redMine Installationを読み直す

1. Download and extract the archive or checkout redMine.

checkoutをクリックするとDownloadに飛ぶ。「redMine releases can be found here at RubyForge.」のhereをクリックするとRubyForgeにたどり着く。ここで最新版のredmineをダウンロードする。
 
ダウンロードしたものを展開してみる。
Aptana IDEでReailsプロジェクト「redmine」を作成する。出来上がったプロジェクトのフォルダにダウンロードしたものをすべて上書きしてみる。

2. Create an empty database: “redmine” for example

MySQLを使っている。UTF8で作成しなければならないらしい。

C:\>mysql -u root -p
Enter password: **************
Welcome to the MySQL monitor. mysql> create database redmine default character set utf8;
Query OK, 1 row affected (0.00 sec)
mysql>

 

3. Configure database parameters in config/database.yml for “production” environment (default database is MySQL)

Aptana IDERailsプロジェクトに作成した「redmine」の中に「 config/database.yml 」ってのがある。
 
productionが推奨っぽいけど、開発版として「development」で試すことにする

development:
adapter: mysql
database: redmine
username: root
password: **************
host: localhost
encoding: utf8

 

4. Create the database structure. Under the application root directory:

rake db:migrate RAILS_ENV="production" It will create tables and an administrator account.
Aptana IDEのRakeタスクで「db:migrate」を選択して「実行」ボタンを押す。
 
「db/migrate」の中にある58個のテーブル作成の何かが動く。
 

5. Insert default configuration data in database: rake load_default_data RAILS_ENV="production" It will load default roles, trackers, statuses, workflows and enumerations.This step is optional (but recommended), as you can define your own configuration from sratch.

Aptanaには「load_default_data」がある(RadRailには無いらしいのでコマンド打ち)「実行」ボタンを押すとコンソールに何か出た

(in C:/Aptana IDE Beta/redmine)

Select language: bg, de, en, es, fr, it, ja, nl, pt, pt-br, sv, zh [en] ja
====================================
Loading default configuration data for language: ja

「ja」を入力した。
 
MySQL AdministratorでredmineスキーマーのRowsを確認すると「74」から「307」に変化している。

 

6. Test the installation by running WEBrick web server: ruby script/server -e production Once WEBrick has started, point your browser to http://localhost:3000/ You should now see the application welcome page


Aptana IDEで「サーバ」からredmineServerを起動してみたが、デフォルトの設定では「Welcome aboard」とRailsのページになっている。
welcomeを付け加えるとそれっぽいページになった。
 

index.htmlとwelcome

「config/routes.rb」に問題の部分を発見する。

# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
# map.connect '', :controller => "welcome"

public/index.htmlを削除しろということで、リネームしてみる。
うまくいった