kaeruspoonは今までLighttpd+FastCGIで動かしていましたが、OSをcentOSからDebianに移したのを契機に、apache+mod_proxy_balancer+mongrelで動かすことにしました。 まずはapacheとmongrel、mongrel_clusterのインストールから。
ちょっとはまったのでメモ。Apacheは例によってSynapticで適当にインストール。Mongrelはすでにポート3000番で動いているものとします。 まずはmod_proxyをloadするために以下を実行。 $ sudo a2enmod proxy 続いて/etc/apache2/mods-enabled/proxy.confを以下のとおり編集。 ProxyRequests Off Order deny,allow Allow from all ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ そして設定を有効にするため sudo /etc/init.d/apache2 force-reload これでいけるはずだと思ったら403エラーになります。 あちこち苦労して検索していたらよう
最高気温:24℃ _ www/rubygem-mongrel用daemontools runスクリプト Railsを動かすためににwww/rubygem-mongrelにインストールしたところ、rc.dスクリプトが付属していなかったので、daemontoolsで管理させることにした。 以下、とりあえず書いてみたrunスクリプト。 #!/bin/sh exec 2>&1 exec envdir ./env \ sh -c ' exec \ envuidgid www \ mongrel_rails start \ -e "${RAILS_ENV-development}" \ -p "${PORT-3000}" -a "${IP-0.0.0.0}" \ -n "${PROCS-2}" \ -c "${ROOT}" ' 次はwww/rubygem-mongrel_clusterに挑戦したい。
「10分で作るRailsアプリ for Windows」の増井さんに直に話を聞く機会があって、名前だけ知ってたMongrelがこれからいい感じジャマイカということを聞いたので、とりあえず環境を作ってみた。 Mongrel: Home What is Mongrel? Mongrel is a fast HTTP library and server for Ruby that is intended for hosting Ruby web applications of any kind using plain HTTP rather than FastCGI or SCGI. で、具体的に参考にしたのはココ↓ Scaling Rails with Apache 2.2, mod_proxy_balancer and Mongrel Lighttpdがボコボコとクラッシュするようになって
最近はMac OSXで開発を行っている。Unixベースとあって、開発ツールが容易に使えるのが利点だ。とは言え、Mac OSXでRails開発を行おうと思うと色々用意する必要がある。 MySQLをインストールしたり、Ruby、RubyGems、Rails等など…。そこまで至るまでに疲れてしまう人もいるだろう。そこで使いたいのがこれだ。 今回紹介するオープンソース・ソフトウェアはRM-Install、Ruby on Rails開発環境インストーラーだ。 RM-Installで入るソフトウェアは、Ruby/Rails/MySQL/SQLite/Subversion/OpenSSL/ImageMagick/Mongrel/Mongrel Cluster/Capistrano/Gruff/Rake/RMagickだ。 効率的な開発を行う上でSubversionははずすことができないだろう。また、イン
はじめに Star It!のアクセス数が増えてきて、色々と支障がでてきたので、おもいきって友人の会社に置いているサーバへと移してみました。さすがに、さくらインターネットの共用サーバ上で、1日あたり10万クエリをCGI + sqlite3という構成でさばくのは無理があったようです。新天地では、データベースをMySQLへと入れ替えたうえで、PoundとMongrel、それにApache2.0系という構成にしてみましたので、ばっちり動いてくれることを期待しています。 というわけで、今回のエントリーは、PoundとMongrel、それにApache2.0系を利用して、Ruby on Railsウェブアプリケーション環境を構築してみよう、という話です。この構成のメリットは、十分なスケーラビリティを得たうえで、柔軟性も確保できるという点が挙げられます。私のサーバ環境はDebian GNU/Linuxで
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く