Skip to content

Instantly share code, notes, and snippets.

@joncode
Created May 16, 2012 23:40
Show Gist options
  • Select an option

  • Save joncode/2714929 to your computer and use it in GitHub Desktop.

Select an option

Save joncode/2714929 to your computer and use it in GitHub Desktop.
Production Asset pipeline deploy precompile
rake assets:precompile
- will precompile assets
check config/environment/production.rb
config.serve_static_assets = true
- to simulate server serving static assets in production
config.assets.precompile += %w( plugins.js , script.js )
- if javascript assets are not precompiling, you must specifically include them here
rails server -e production
- to run your local machine in production environment
when deploy to production
config.serve_static_assets = false
- only set that way when running local server in production mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment