• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

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 satoko satoko on Thu 1 Jun 2006 at 15:32 with 0 comments
Contents rssrss
NSAssertやNSLogを無効にする:-DNS_BLOCK_ASSERTIONS=1とNS_BLOCK_ASSERTIONS
GDBでview.frameを表示させる
Core Animationについてのリンク集
[iPhone] new BSDライセンスについてライセンス引用のメモ
Implementing a Container View Controller in UIViewController Class Reference
UITableView用のNSIndexPathの作り方
Xcodeのテンプレート、View-based ApplicationとWindow-based Applicationの違い
CopyOnSelectのLion対応
Xcode4のCode Snippetsを別のPCに移動する+gitで管理する
[iPhone] Singleton: iOS4以降はGCDのdispatch_onceを使う
Tags
iphone開発gitIBInterfaceBuilderiOSSIMBLSnippetsterminaltwitterxcodeXcode4
Comments rssrss
guest guest: Muchos turistas buscan la mejor forma de llegar a ... 05/30 03:19
guest guest: San Antonio de Areco es conocido como la cuna de l... 05/27 19:47
guest guest: Optimizar el tiempo durante un viaje de negocios e... 05/18 00:46
guest guest: Para muchos turistas, el transporte publico y la l... 05/15 18:22
Services from s21g
天気ランキング
複数の天気予報サービスの予報と観測結果を比較。週間・月間・年間・通期のランキングや地域別の予報比較から、自分に合う天気予報を探せます。
MagicBag
MagicBagは、Cloudflare R2やS3互換ストレージをMacのFinderから扱えるファイル同期クライアントです。
アンテナショップめぐり
東京にある全国のアンテナショップ、イベント、特産品を地図や条件から探せるサービスです。
YOMU Web小説リーダー
YOMUは、Web小説の読み上げに特化したiPhoneアプリです。
補助探
公開されている補助金・助成金情報を集約し、条件に合う制度を探しやすくするサービスです。