Skip to content

Commit

Permalink
call asset:precompile task explicitly on re-invocation; fixes rails#3198
Browse files Browse the repository at this point in the history
  • Loading branch information
mjtko committed Oct 3, 2011
1 parent 6759a88 commit 8f5feeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/sprockets/assets.rake
Expand Up @@ -6,7 +6,7 @@ namespace :assets do
if ENV["RAILS_GROUPS"].to_s.empty? || ENV["RAILS_ENV"].to_s.empty?
ENV["RAILS_GROUPS"] ||= "assets"
ENV["RAILS_ENV"] ||= "production"
ruby $0, *ARGV
ruby $0, 'assets:precompile'
exit
else
require "fileutils"
Expand Down Expand Up @@ -42,7 +42,7 @@ namespace :assets do
YAML.dump(manifest, f)
end
ENV["RAILS_ASSETS_NONDIGEST"] = "true"
ruby $0, *ARGV
ruby $0, 'assets:precompile'
exit
end
end
Expand Down

0 comments on commit 8f5feeb

Please sign in to comment.