mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use sprockets precompile
This commit is contained in:
parent
989103a233
commit
8c26d0dba6
1 changed files with 2 additions and 10 deletions
|
@ -1,14 +1,6 @@
|
|||
namespace :assets do
|
||||
task :compile => :environment do
|
||||
env = Rails.application.assets
|
||||
|
||||
assets = Rails.root.join("public/assets")
|
||||
assets.mkdir unless assets.exist?
|
||||
|
||||
Rails.application.config.compile_assets.each do |path|
|
||||
assets.join(path).open('w') do |f|
|
||||
f.write env[path].to_s
|
||||
end
|
||||
end
|
||||
assets = ENV['assets'].split(',')
|
||||
Rails.application.assets.precompile(*assets)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue