Created
July 4, 2016 18:24
-
-
Save huoxito/b545599b201a32784c61cd2a3a0315a1 to your computer and use it in GitHub Desktop.
assets:precompile on ci servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in config/environments/test.rb | |
if running_on_ci? | |
config.assets.compile = true | |
config.assets.digest = true | |
end | |
# cache these two dirs: | |
# - tmp/cache/assets/test/sprockets | |
# - public/assets | |
# before test step compile assets to avoid on the fly compilation | |
# and very slow first acceptance test for each container | |
rake assets:precompile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment