Permalink
Browse files

Exit with a failure when asset precompilation fails

This should prevent the deployment of a site that has bad asset files,
which will most likely throw errors in production.
  • Loading branch information...
Chris Nicola
Chris Nicola committed Sep 12, 2012
1 parent ca7dc1a commit 3c63ca391da1faaeab3f88b1cb21929ce4e8dad8
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/language_pack/rails3.rb
@@ -61,10 +61,10 @@ def run_assets_precompile_rake_task
cache_store "public/assets"
else
log "assets_precompile", :status => "failure"
puts "Precompiling assets failed, enabling runtime asset compilation"
install_plugin("rails31_enable_runtime_asset_compilation")
puts "Precompiling assets failed, unable to deploy."
puts "Please see this article for troubleshooting help:"
puts "http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting"
exit 1
end
end
end

0 comments on commit 3c63ca3

Please sign in to comment.