diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-26 11:24:56 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-26 11:24:56 -0500 |
commit | dbb32115ef45dd58667e450125deba80d7016341 (patch) | |
tree | 83089bedcf1028e301a961910560b6c99185cb7c /railties/lib/rails/generators | |
parent | 79a4d505fa8bd83189296be60cf62601e6783597 (diff) | |
download | rails-dbb32115ef45dd58667e450125deba80d7016341.tar.gz rails-dbb32115ef45dd58667e450125deba80d7016341.tar.bz2 rails-dbb32115ef45dd58667e450125deba80d7016341.zip |
Enable static asset server by default
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/production.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb index 1fc9f6b923..377b9207c7 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb @@ -17,6 +17,10 @@ config.action_controller.perform_caching = true # Use a different cache store in production # config.cache_store = :mem_cache_store +# Disable Rails's static asset server +# In production, Apache or nginx will already do this +config.serve_static_assets = false + # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" @@ -24,4 +28,4 @@ config.action_controller.perform_caching = true # config.action_mailer.raise_delivery_errors = false # Enable threaded mode -# config.threadsafe!
\ No newline at end of file +# config.threadsafe! |