railsでmongrelを使う【インストール】
gemでインストールするだけ。
gem install mongrel 1. mongrel 0.3.13.4 (ruby) 2. mongrel 0.3.13.3 (mswin32) 3. mongrel 0.3.13.3 (ruby) 4. mongrel 0.3.13.2 (ruby) 5. mongrel 0.3.13.2 (mswin32) 6. mongrel 0.3.13.1 (ruby) 7. mongrel 0.3.13.1 (mswin32) 8. mongrel 0.3.13 (ruby) > 1 Install required dependency daemons? [Yn] Y Install required dependency gem_plugin? [Yn] Y (中略) make install /usr/bin/install -c -m 0755 http11.so /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib make clean Successfully installed mongrel-0.3.13.4 Successfully installed daemons-1.0.3 Successfully installed gem_plugin-0.2.1 Installing ri documentation for mongrel-0.3.13.4... Installing ri documentation for daemons-1.0.3... Installing ri documentation for gem_plugin-0.2.1... Installing RDoc documentation for mongrel-0.3.13.4... Installing RDoc documentation for daemons-1.0.3... Installing RDoc documentation for gem_plugin-0.2.1...
起動と停止は
mongrel_rails start mongrel_rails stop
でオッケー。
裏で動かしたいときは
mongrel_rails start -d
です。
http://www.goodpic.com/mt/archives2/2006/07/mongrel_1.html
http://mongrel.rubyforge.org/
hatenaのハイライト覚え書き
Rubyのコード表示テスト
def test @tests= Test.find(:all) end
Javascriptのコード表示テスト
function test(){ return true; }
- 作者: 西和則
- 出版社/メーカー: 秀和システム
- 発売日: 2006/07/31
- メディア: 単行本
- 購入: 2人 クリック: 237回
- この商品を含むブログ (118件) を見る