config/database.yml
config/database.yml.example
をコピーしてきて。
production: adapter: mysql database: redmineDatabase host: localhost username: redmineRoot password: redmineRootPassword encoding: utf8
テストなのでてきとう。…CamelCase な文化ではないのかな?ちょっと違和感があるけれど。
MySQL
MySQL にデータベースとかユーザとか作っておく。
$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 35 Server version: 5.1.49-3 (Debian) Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE redmineDatabase; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL ON `redmineDatabase`.* TO redmineRoot IDENTIFIED BY 'redmineRootPassword'; Query OK, 0 rows affected (0.00 sec) mysql> exit; Bye
ちょっとだけよ?
gem で何も入れていないけど,これくらいはできるかな?
/var/local/lib/redmine$ sudo -u www-data rake generate_session_store [sudo] password for takashima: (in /var/local/lib/redmine-1.3.1) Please install RDoc 2.4.2+ to generate documentation.
rdoc は Ruby が提供しちゃっているはずなの。
$ rdoc --version RDoc V1.0.1 - 20041108
…ええと。
深く考えずに gem でインストール。
$ sudo gem search rdoc -r *** REMOTE GEMS *** darkfish-rdoc (1.1.5) detroit-rdoc (0.1.0) jakewendt-rdoc_rails (0.0.2) murdoc (0.1.12) murdoch (1.0.1) quality_rdoc (0.0.1) rdoc (3.12) rdoc-babel (0.9.1) rdoc-data (3.12) rdoc-f95 (0.0.2) rdoc-newfish (0.5.0) rdoc-perl_pod (1.0) rdoc-rake (1.0.1) rdoc-readme (0.1.2) rdoc-sinatra (1) rdoc-tags (1.2) rdoc_chm (2.4.2) rdoc_html_templates (2.3.0) rdoc_osx_dictionary (2.0.1) rdoc_rest (0.1.2) rdoctest (0.0.2) yardocco (0.1.0) $ sudo gem install rdoc Building native extensions. This could take a while... Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! Successfully installed json-1.6.5 Successfully installed rdoc-3.12 2 gems installed Installing ri documentation for json-1.6.5... Installing ri documentation for rdoc-3.12... Installing RDoc documentation for json-1.6.5... Installing RDoc documentation for rdoc-3.12...
もういっかい。
$ sudo -u www-data rake generate_session_store (in /var/local/lib/redmine-1.3.1) $ sudo -u www-data rake db:migrate RAILS_ENV=production (in /var/local/lib/redmine-1.3.1) rake aborted! Could not find RubyGem rack (~> 1.1.0) (See full trace by running task with --trace)
……あれ?
librack-ruby (1.1.0-4) ではだめかなぁ?
$ sudo apt-get install librack-ruby -s パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の特別パッケージがインストールされます: javascript-common libjs-jquery librack-ruby1.8 wwwconfig-common 提案パッケージ: postgresql-client apache apache-ssl 以下のパッケージが新たにインストールされます: javascript-common libjs-jquery librack-ruby librack-ruby1.8 wwwconfig-common アップグレード: 0 個、新規インストール: 5 個、削除: 0 個、保留: 0 個。 Inst wwwconfig-common (0.2.1 Debian:6.0.4/stable [all]) Inst javascript-common (7 Debian:6.0.4/stable, Debian:testing [all]) Inst libjs-jquery (1.4.2-2 Debian:6.0.4/stable [all]) Inst librack-ruby1.8 (1.1.0-4 Debian:6.0.4/stable [all]) Inst librack-ruby (1.1.0-4 Debian:6.0.4/stable [all]) Conf wwwconfig-common (0.2.1 Debian:6.0.4/stable [all]) Conf javascript-common (7 Debian:6.0.4/stable, Debian:testing [all]) Conf libjs-jquery (1.4.2-2 Debian:6.0.4/stable [all]) Conf librack-ruby1.8 (1.1.0-4 Debian:6.0.4/stable [all]) Conf librack-ruby (1.1.0-4 Debian:6.0.4/stable [all])
もういっかい。
$ sudo -u www-data rake generate_session_store (in /var/local/lib/redmine-1.3.1) $ sudo -u www-data rake db:migrate RAILS_ENV=production (in /var/local/lib/redmine-1.3.1) rake aborted! Could not find RubyGem rack (~> 1.1.0) (See full trace by running task with --trace)
……かわらんがな?
0 件のコメント:
コメントを投稿