1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

rake assets:precompile defaults to production env

This commit is contained in:
Santiago Pastorino 2011-08-09 20:40:52 -03:00
parent 5f56db4454
commit d9b690f71f

View file

@ -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"