Permalink
Browse files

rake assets:precompile defaults to production env

  • Loading branch information...
1 parent 561e8a7 commit 004bb66d00015404eee1b3cef3f733800949c78b @spastorino spastorino committed Aug 9, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/sprockets/assets.rake
View
1 actionpack/lib/sprockets/assets.rake
@@ -2,6 +2,7 @@ namespace :assets do
# Ensures the RAILS_GROUPS environment variable is set
task :ensure_env do
ENV["RAILS_GROUPS"] ||= "assets"
+ ENV["RAILS_ENV"] ||= "production"
end
desc "Compile all the assets named in config.assets.precompile"

0 comments on commit 004bb66

Please sign in to comment.