Skip to content

Instantly share code, notes, and snippets.

@DCarper
Created February 4, 2013 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DCarper/4708533 to your computer and use it in GitHub Desktop.
Save DCarper/4708533 to your computer and use it in GitHub Desktop.
Why does Rails default to breaking your application?
YourApp::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# ...
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment