Browse Source

Fixed server_static_assets deprecation warning

development
Godwin 9 years ago
parent
commit
f083ba3862
  1. 2
      config/environments/preview.rb
  2. 2
      config/environments/production.rb

2
config/environments/preview.rb

@ -20,7 +20,7 @@ BikeBike::Application.configure do
# config.action_dispatch.rack_cache = true # config.action_dispatch.rack_cache = true
# Disable Rails's static asset server (Apache or nginx will already do this). # Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_assets = true config.serve_static_files = true
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier

2
config/environments/production.rb

@ -20,7 +20,7 @@ BikeBike::Application.configure do
# config.action_dispatch.rack_cache = true # config.action_dispatch.rack_cache = true
# Disable Rails's static asset server (Apache or nginx will already do this). # Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_assets = true config.serve_static_files = true
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier config.assets.js_compressor = :uglifier

Loading…
Cancel
Save