rails3.1.x以降でassets pipe lineを利用する際に、assetsの提供を別サーバにしたい場合は下記の手順で実施する必要があります。 config/environments/production.rbを編集する。 config.assets.compile = falseにする。 config.action_controller.asset_host = "http://www.example.com" として提供サーバを設定する。 開発マシンでrake assets:precompileを実行する。 サブディレクトリ配下におきたい場合は、RAILS_RELATIVE_URL_ROOT=/fooの様に環境変数で指定する。 manifest.ymlだけコミットする manifest.ymlがあれば論理名をハッシュ付き名に変換可能。 public/assetsは無視リストに
This guide covers the asset pipeline. After reading this guide, you will know: What the asset pipeline is and what it does. How to properly organize your application assets. The benefits of the asset pipeline. How to add a pre-processor to the pipeline. How to package assets with a gem. 1 What is the Asset Pipeline?The asset pipeline provides a framework to handle the delivery of JavaScript and CS
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く