# apt-get -y install rubygems
# apt-get -y install rubygems
# gem install rake Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rake-0.8.1 Installing ri documentation for rake-0.8.1... Installing RDoc documentation for rake-0.8.1...
参考 http://www2s.biglobe.ne.jp/~idesaku/sss/tech/rake/#install
# gem install rails --include-dependencies Successfully installed rails-2.0.2 Successfully installed activesupport-2.0.2 Successfully installed activerecord-2.0.2 Successfully installed actionpack-2.0.2 Successfully installed actionmailer-2.0.2 Successfully installed activeresource-2.0.2 Installing ri documentation for activesupport-2.0.2... Installing ri documentation for activerecord-2.0.2... Installing ri documentation for actionpack-2.0.2... Installing ri documentation for actionmailer-2.0.2... Installing ri documentation for activeresource-2.0.2... Installing RDoc documentation for activesupport-2.0.2... Installing RDoc documentation for activerecord-2.0.2... Installing RDoc documentation for actionpack-2.0.2... Installing RDoc documentation for actionmailer-2.0.2... Installing RDoc documentation for activeresource-2.0.2...
参考 http://www.srcw.net/blog/2007/09/redmine.html
$ svn co http://svn.redmine.org/redmine/tags/0.6.3 redmine
# apt-get -y install MySQL-shared # apt-get -y install MySQL-server # apt-get -y install MySQL-client # apt-get -y install MySQL-ruby
$ mysqladmin -u root password mysqlここでは、ユーザー root のパスワードを mysql に設定します。 適宜適切なパスワードを設定します。
$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 to server version: 5.0.27-standard Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database redmine character set utf8; Query OK, 1 row affected (0.02 sec) mysql> quit; Bye
参考 http://redmine.jp/guide/RedmineInstall
$ cp config/database.yml.example config/database.yml
production: adapter: mysql database: redmine host: localhost username: root password: mysql
参考 http://redmine.jp/guide/RedmineInstall
$ rake db:migrate RAILS_ENV="production" $ rake load_default_data RAILS_ENV="production" (in /home/redmine/redmine) Select language: bg, cs, de, en, es, fr, he, it, ja, ko, nl, pl, pt, pt-br, ro, ru, sr, sv, zh, zh-tw [en] ja ==================================== Loading default configuration data for language: ja Note: The rake task load_default_data has been deprecated, please use the replacement version redmine:load_default_data
参考
$ script/server -e production start => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2008-02-28 21:45:36] INFO WEBrick 1.3.1 [2008-02-28 21:45:36] INFO ruby 1.8.5 (2006-08-25) [i386-linux] [2008-02-28 21:45:36] INFO WEBrick::HTTPServer#start: pid=3007 port=3000
http://localhost:3000/
# gem install mongrel_cluster --include-dependencies
参考 http://rubyist.g.hatena.ne.jp/muscovyduck/20070402/p1
mongrel_rails cluster::configure を使用して、mongrel_cluster.yml を 作成する。
$ mongrel_rails cluster::configure ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix Writing configuration file to config/mongrel_cluster.yml. $ less config/mongrel_cluster.yml --- log_file: log/mongrel.log port: 3000 pid_file: tmp/pids/mongrel.pid servers: 2
$ mongrel_rails cluster::configure -e production -p 3000 -c `pwd` ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix Writing configuration file to config/mongrel_cluster.yml. $ cat config/mongrel_cluster.yml --- cwd: /home/redmine/redmine log_file: log/mongrel.log port: "3000" environment: production pid_file: tmp/pids/mongrel.pid servers: 2
$ mongrel_rails cluster::configure -e production -p 3000 -c `pwd` -N 5 ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix Writing configuration file to config/mongrel_cluster.yml. $ cat config/mongrel_cluster.yml --- cwd: /home/redmine/redmine log_file: log/mongrel.log port: "3000" environment: production pid_file: tmp/pids/mongrel.pid servers: 5
$ mongrel_rails start -e production -p 3000 ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with production environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. ** Mongrel 1.1.2 available at 0.0.0.0:3000 ** Use CTRL-C to stop.
参考 http://d.hatena.ne.jp/hayori/20071029/1193650726
$ mongrel_rails start -d -e production -p 3000 ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
http://localhost:3000/
# apt-get -y install subversion # apt-get -y install MySQL-shared # apt-get -y install MySQL-ruby # apt-get -y install MySQL-server # apt-get -y install MySQL-client # apt-get -y install rubygems # chkconfig apache2 on # chkconfig mysql on # /etc/init.d/mysql start # gem install rake # gem install mongrel_cluster --include-dependencies # gem install rails --include-dependencies # adduser redmine # passwd redmine $ svn co http://redmine.rubyforge.org/svn/tags/0.6.3 redmine $ mysqladmin -u root password mysql $ mysql -u root -p $ cd redmine/ $ cp config/database.yml.example config/database.yml $ vi config/database.yml $ rake db:migrate RAILS_ENV="production" $ rake load_default_data RAILS_ENV="production" $ mongrel_rails cluster::configure -e production -p 3000 $ mongrel_rails start -d -e production -p 3000