mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Story#115147999 - set mina script
This commit is contained in:
parent
e4c340740e
commit
05e603aa9d
190 changed files with 6 additions and 425699 deletions
|
@ -1,18 +0,0 @@
|
|||
Rake::Task["assets:precompile"].enhance do
|
||||
Rake::Task["assets:non_digested"].invoke
|
||||
end
|
||||
|
||||
namespace :assets do
|
||||
task non_digested: :environment do
|
||||
manifest_path = Dir.glob(File.join(Rails.root, 'public/assets/.sprockets-manifest-*.json')).first
|
||||
manifest_data = JSON.load(File.new(manifest_path))
|
||||
|
||||
manifest_data["assets"].each do |logical_path, digested_path|
|
||||
FileUtils.cp("public/assets/#{digested_path}", "public/assets/#{logical_path}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
task as: :environment do
|
||||
system('RAILS_ENV=production rake assets:precompile')
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue