7 changed files with 62 additions and 25 deletions
@ -0,0 +1,8 @@
|
||||
DATA_DIR_PATH= |
||||
|
||||
WEB_RESTART_MODE= |
||||
WEB_RAILS_ENV= |
||||
WEB_RAILS_MASTER_KEY= |
||||
WEB_RAILS_PORT= |
||||
|
||||
SOLR_PORT= |
||||
@ -0,0 +1,16 @@
|
||||
namespace :assets do |
||||
task non_digested: :environment do |
||||
assets = Dir.glob(Rails.root.join("public", "assets", "ckeditor", "**", "*")) |
||||
regex = /(-{1}[a-z0-9]{32}*\.{1}){1}/ |
||||
assets.each do |file| |
||||
next if File.directory?(file) || file !~ regex |
||||
|
||||
source = file.split("/") |
||||
source.push(source.pop.gsub(regex, ".")) |
||||
|
||||
non_digested = File.join(source) |
||||
FileUtils.cp(file, non_digested) |
||||
end |
||||
FileUtils.cp("app/assets/javascripts/ckeditor/config.js", "public/assets/ckeditor/") |
||||
end |
||||
end |
||||
Loading…
Reference in new issue