我非常熟悉Ruby和Ramaze,但是我想为我的管理员提供安装指南,因为他们更熟悉Tomcat和标准的Apache安装。
我先在本地试过,但时间很长:
sudo aptitude install ruby1.8 ruby1.8-dev rubygems1.8 sqlite3
wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.8.0.tar.gz
tar zxvf onig-5.8.0.tar.gz
cd onig-5.8.0/
./configure
make
sudo make install
sudo gem install -r --include-dependencies --no-rdoc --no-ri ramaze mongrel sequel sqlite3-ruby ultraviolet
(mongrel 1.1.5 ruby)
(sqlite3-ruby 1.2.4 ruby)
(onigurama 1.1.0 ruby)
cp -r /usr/lib/ruby/gems/1.8/gems/ramaze-2008.06/examples/app/rapaste .
cd rapaste/
vi start.rb
Change the following line (add "java" at position 0)
UV_PRIORITY_NAMES = %w[ java ruby plain_text html css javascript yaml diff ]
ruby start.rb --adapter mongrel --port 7000
有近路吗?我可以在哪里优化?