2008-04-14から1日間の記事一覧
Japan.internet.com コラム/developer.com RubyはJavaより単純でJavaより高速です。 噴飯もの。 class Hello @defaultMsg # *1 def initialize(msg) @defaultMsg=msg # *2 end end と module Catalog PI=3.1419 @journal # *1 def setJournal(journal) @jour…
d:id:rx7:20080327:p1 で紹介されていたRails用のApacheモジュール「Passenger (mod_rails for Apache)」が、とうとうベールを脱いだ模様。 先日、mod_railsを使うと何が嬉しいのよ、って聞かれたんですが、やはりApacheを通してRailsアプリケーションが動く…
Capistrano とは、要するに他の複数のサーバのシェルをローカルから一斉に操作できるツール。デプロイに使うのが代表的な用途。 初心者向けの分かりやすい解説サイトは、FFTTというところの Capistranoというエントリ。 % capify (パス名) で(パス名)にあ…
Rails運用時で気になるのは、安定性とパフォーマンス。安定性はいろいろ負荷テストをして時間が経たないと分からないので、まずはメモリのパフォーマンスから調べてみます。 とりあえず、ちょっとしたサンプルをmongrelで動かしてみると、44Mほどメモリを確…
最近とあるRailsプロジェクトで4月5日2008年ではなく、平成20年4月5日として表示したかったがそれを簡単に変換するヘルパーがなかったので、ヘルパーを開発しました。最近、それを友達がほしいといったのでついでにプラグイン化して皆さんのプロジェクトにも…
Following on from this weeks’ launch of Github, it’s worth rounding up some of the best Ruby-related Git content out there. For those who still aren’t familiar with what it is, Git is a distributed source code management / revision control…
mod_railsでは、Gemsで新しいパッケージを導入した場合、Apache自体を再起動しないと、アプリからそのパッケージを読み込めない模様。 p.s Passenger architectural overviewを見ると大体の構造が分かるみたい。ちゃんと読んでみよう。 Ruby Enterprise Edit…
This document describes Passenger's architure in a global way. The purpose of this document is to lower the barrier to entry for new contributors, as well as to explain (some of the) design choices that we have made. Or it can be a fun rea…