mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Precompile configured assets
This commit is contained in:
parent
77d8f7a4b7
commit
25c0b569f5
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ module Rails
|
|||
:preload_frameworks, :reload_plugins,
|
||||
:secret_token, :serve_static_assets, :session_options,
|
||||
:time_zone, :whiny_nils,
|
||||
:asset_pipeline, :compile_assets
|
||||
:asset_pipeline, :precompile_assets
|
||||
|
||||
attr_writer :log_level
|
||||
|
||||
|
@ -30,7 +30,7 @@ module Rails
|
|||
@middleware = app_middleware
|
||||
@generators = app_generators
|
||||
@asset_pipeline = false
|
||||
@compile_assets = []
|
||||
@precompile_assets = []
|
||||
end
|
||||
|
||||
def compiled_asset_path
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace :assets do
|
||||
task :compile => :environment do
|
||||
assets = ENV['assets'].split(',')
|
||||
assets = Rails.application.config.precompile_assets
|
||||
Rails.application.assets.precompile(*assets)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue