SQLiteは他のホストからアクセスできないので、PostgreSQLでセットアップしてみました。
朝あるいは定時前に当日完了予定のタスクなどの確認メールを送信するとか、社内の標準文書のネタを作成するようなツールを自作しようかと思ってるので。
PostgreSQL 8.2.3(Windows)
PostgreSQL/Rubyのインストール
($ export http_proxy=http://proxy.xxx.yyy.zzz:8080) $ gem install postgres-pr
DBの初期化
予めPostgreSQL側のDBを作成しておきます(username: hoge, password: fuga, database: redmine)。
その他ポートなどはデフォルトのままです
PostgreSQL用のdatabase.ymlを作成して、
【database.yml】 production: adapter: postgresql database: redmine host: xxx.xxx.xxx.xxx username: hoge password: fuga
同じくrakeコマンドで
$ rake db:migrate RAILS_ENV=production $ rake load_default_data RAILS_ENV=production 【途中で言語を聞いてくるので】 Select language: bg, ca, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sk, sr, sv, th, tr, uk, vn, zh, zh-tw [en] 【jaと入力】
で完了。