2008-06-04
          
[開発]rails lemnos
今回の開発コードはlemnos。とりあえずsvnに突っ込んだ。
Railsのバージョンは「2.1.0」。
shooting_starのインストール
gem install shooting_star
Rialsプロジェクトの作成
rails lemnos cd lemnos shooting_star init ./script/generate meteor ./script/generate chat
config/database.yml
common: &common
  adapter: sqlite3
  ### 以下、ShootingStarの設定を追加 ###
  shooting_star:
    # ブラウザからCometサーバーにつなぐときのURI
    server:
      - colinux:8080
    # RailsからPushサーバーにつなぐときのURI
    shooter:
      - druby://localhost:7123
    # ランダムサブドメイン対応ですが、とりあえずfalse
    random_subdomain: false
# SQLite version 3.x
#   gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
  database: db/development.sqlite3
  <<: *common
  timeout: 5000
# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test:
  adapter: sqlite3
  database: db/test.sqlite3
  timeout: 5000
production:
  adapter: sqlite3
  database: db/production.sqlite3
  timeout: 5000