Skip to content

Instantly share code, notes, and snippets.

@ismell
Created May 8, 2014 16:56
Show Gist options
  • Save ismell/a05035f441465e57cf52 to your computer and use it in GitHub Desktop.
Save ismell/a05035f441465e57cf52 to your computer and use it in GitHub Desktop.
Precompile and cache rails assets on CircleCI
dependencies:
# Compute the assets once and cache them
post:
- bundle exec rake assets:precompile assets:clean_expired:
environment:
RAILS_GROUPS: assets
cache_directories:
- "public/assets"
@es
Copy link

es commented Nov 4, 2014

👍 though assets:clean_expired didn't seam to work for me

@ericboehs
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment