アルファ試験環境の構築

環境作って deploy してみた。

  • リポジトリから co
  • apache2 の設定
  • DB の作成と database.yml の修正
  • rubygem のインストール
  • rdoc の aptitude install
  • rails の gem install
# gem install rails -v 1.0.0 --include-dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rails-1.0.0
Successfully installed rake-0.7.1
Successfully installed activesupport-1.2.5
Successfully installed activerecord-1.13.2
Successfully installed actionpack-1.11.2
Successfully installed actionmailer-1.1.5
Successfully installed actionwebservice-1.0.0
(以下略
  • acts_as_taggable インストール
# gem install acts_as_taggable
  • migrate
  • tags と events_tags は自分で作成
mysql> create table tags (
    -> id int(11) not null auto_increment,
    -> name varchar(255) default null,
    -> primary key (id)
    -> );
Query OK, 0 rows affected (0.00 sec)

mysql> create table events_tags (
    -> tag_id int(11) not null,
    -> event_id int(11) not null
    -> );
Query OK, 0 rows affected (0.00 sec)

mysql> 
[Mon Aug 21 15:35:20 2006] [alert] [client 172.16.*.4] /var/www/***/public/.htaccess: 
Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module 
not included in the server configuration
  • libfcgi-ruby1.8 が足らない? 入れたが動作せず。(多分関係ないが確認未実施)
  • モジュールの enable が足らない (盲点がしかしログには出力
# a2enmod rewrite
  • あと exim の設定。
  • ログインしてみるとオチた
    • users 関連がナイ (汗
# rake engine_migrate ENGINE=login
  • windows.open なパスの不具合あり (絶対パスになっている)

で、動作を確認したんですが、ヘルプ作った方が良いかも。しかも test/unit と test/functional なナニをきちんとやっておいた方が良いっぽい。