如何最简单地安装和运行Ramazes Rapaste?
我对 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
有没有更短的方法? 我可以在哪里优化?
I'm pretty familiar with Ruby and Ramaze, but I wanted to provide my Admins with an install howto, since they're more familiar with Tomcat and standard Apache installations.
I tried it locally first and it got pretty long:
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
Is there a shorter way? Where could I optimize?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果系统中缺少这些库和东西,我不知道如何才能使其变得更短。 唯一的进一步优化可能是编写某种构建脚本。
If those libraries and things are missing from the system, I don't see how this can be made much shorter. The only further optimization might be to write a build script of some kind.