This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/37

RailTies(RailsのCore)への PATCH5003が採用されました。

ちょっと嬉しいです。

これによって、./script/generate pluginuninstall.rb が生成されるので、その中にプラグインのUninstallコードを書けるようになります。

例えば、install.rbでCSSとかJavaScriptとか画像ファイルをpublic/以下にコピーするプラグインなどで、./script/plugin remove時にそれらを取り除くようにする事ができます。

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/37

posted by Png genki on Sun 4 Jun 2006 at 15:11

This article was migrated from http://rails.office.drecom.jp/hibi/archive/13

すごいタイトルだね、これ。

winでproductionを試そうとしていたら、新井さんがVMWareを教えてくれた。
DebianもDBもRubyもいっぱい入ってお得なvmxももらう♪
なのでwinでproductionは頓挫。

ででlighttpd入ってなさそうなので、入れてみることにする。
--------------------------------------------------
参考:
http://wota.jp/ac/?date=20051113#p04
http://d.hatena.ne.jp/secondlife/20050406/1112719612
http://d.hatena.ne.jp/moro/20060130/1138628101
http://www.kharakawa.com/kh.log/archives/2006/01/lighttpd_fastcgi_rails.html
--------------------------------------------------
■lighttpdインストール
くまくまさんのを参考に。
/etc/apt/source.listに下記を追加
deb http://debian.bougyman.com unstable main

# aptitude update
# aptitude update
# aptitude install lighttpd
なんか途中でインストールするかといってくるけど、Yでリターン

■lighttpd.conf
でで、secondlifeさんのを参考に。
lighttpd.rails.confを作って起動するが、
RailsFCGIHanderが見つからないみたいなエラーが出るので 汗汗。
どうやら、dispatch.fcgiでrequire 'fcgi_handler'ができてないみたい。
でやとこさ、FCGIをインストールしてないことに気づく。

■FastCGIをインストール
kh.logさんのを参考に。
先に追加したsource.listのhttp://debian.bougyman.comの行を削除して、
aptitude update
aptitude instal libfcgi-ruby libfcgi-ruby1.8
で、これもインストールするかって聞いてくるのでYでリターン。

ちなみに、そこで紹介されてたlighttpdのURLではinstallできなかった。。。なんでかな。
URLが有効でなさそう。その辺が素人には大変です。

■Lighttpd開始・停止
下記で起動してエラーが出てないかみます。Ctrl+Cでstopできるみたい。
lighttpd start -f lighttpd.rails.conf -D

-Dつけないときはkill -term PIDで停止。

で、早速アクセス!
動いたーーーー!!!

でも一部動いてない。。。なんでだ。winでは動いてたのに。
エラーも出てなさそう。

明日はとりあえずproductioinをやろう。修正はその後だにゃ。
--------------------------------------------------
PS secondlifeさんが書かれていた、

次にpublic/dispatch.fcgiの二行目あたりに、
RAILS_ROOT = ENV['RAILS_ROOT']
を追加して


というくだりがあるのですが、これはなんで必要なのかなぁ。。。
よくわからないにゃ。
どなたか教えてくださいませませ。 http://rails.office.drecom.jp/hibi/archive/13

This article was migrated from http://rails.office.drecom.jp/hibi/archive/13

posted by Png satoko on Sun 4 Jun 2006 at 03:47
Contents
RailsプラグインでUninstallコードが書けるようになりました
Debian@VMWare Player+Lighttpd+FastCGI+Rails 
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ