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:
parent
5f56db4454
commit
d9b690f71f
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue