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

CentOSにEthnaを導入する手順をメモしておきます。

まず、CentOSにPHP5.1.4を導入します。 RPMを使う場合は「武蔵流プログラマへの道 - CentOSでPHP5のRPMを作ったよ。」が参考になりそうです。ソースから導入する場合は、僕が以前書いた記事も多少は参考になるかも。

PHPの導入が完了したら、こちらを参考に下記を実行します。

# pear install http://ethna.jp/pear/Ethna-2.1.0-preview1.tgz

次に、include_pathの通ったディレクトリに/usr/share/pear/Ethnaを移動します。

# cp -R /usr/share/pear/Ethna /usr/local/lib/php/Ethna

それから、いくつか依存ライブラリがあるので、無い場合は導入しましょう。

# pear install PEAR/DB
# pear channel-discover pearified.com
# pear install pearified/Smarty

これで完了です。非常に簡単ですね。

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

posted by Png genki on Thu 1 Jun 2006 at 18:09

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

公開するのはUNIX系だろうけど、自分の環境はwinなので。
とりあえずwinでproductionにしてみる。
bestな方法ではないので、その辺ご了承くださいませ。

まずは、コレを見てみる。


P462を見る。
各Webサーバによってproductionの指定が違うみたい。
お手軽にWEBrickでやるとき。コマンドプロンプトで。

C:\Program Files\ruby\rails_apps\your_app>set rails_env=production
C:\Program Files\ruby\rails_apps\your_app>ruby script\server --environment=production

としたらおっけー!
へぇ、まじで!簡単だ。
あ、もちろん、database.ymlでproductionのDBを設定しとくの忘れないでね。

で、productionにしたらscript\aboutコマンドで本当にproductionになっているか確認しとくといいかも。下記は前の記事のとコピペしてます。

C:\Program Files\ruby\rails_apps\your_app>ruby script\about
About your application's environment
Ruby version 1.8.2 (i386-mswin32)
RubyGems version 0.8.10
Rails version 1.1.2
Active Record version 1.14.2
Action Pack version 1.12.1
Action Web Service version 1.1.2
Action Mailer version 1.2.1
Active Support version 1.3.1
Edge Rails revision 4393
Application root C:/Program Files/ruby/rails_apps/your_app
Environment production
Database adapter mysql
Database schema version 2

本当にproduction環境にするにはWebサーバとかDBとかAPPサーバとかその辺の設定をチューニングする必要ありだろうけど、その辺はほかの人においておいちゃおう。
http://rails.office.drecom.jp/hibi/archive/12

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

posted by Png satoko on Thu 1 Jun 2006 at 15:32

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

前の記事の挑戦の確認。
こんな感じでEdgeで動いてるのが確認できるみたいです。

C:\Program Files\ruby\rails_apps\your_app>ruby script\about
About your application's environment
Ruby version 1.8.2 (i386-mswin32)
RubyGems version 0.8.10
Rails version 1.1.2
Active Record version 1.14.2
Action Pack version 1.12.1
Action Web Service version 1.1.2
Action Mailer version 1.2.1
Active Support version 1.3.1
Edge Rails revision 4393
Application root C:/Program Files/ruby/rails_apps/your_app
Environment production
Database adapter mysql
Database schema version 2 http://rails.office.drecom.jp/hibi/archive/11

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

posted by Png satoko on Thu 1 Jun 2006 at 15:22
Contents
CentOSでEthnaを使う
winでproduction環境にする 
EdgeRailsのバージョン確認 
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
ブログに数式を埋め込める数式コミュニティ