mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 07:38:45 -05:00
Regenerate missing optimized images for all dbs by default.
This commit is contained in:
parent
e4883725e6
commit
df8d24734a
1 changed files with 5 additions and 5 deletions
|
@ -373,11 +373,11 @@ end
|
|||
|
||||
# regenerate missing optimized images
|
||||
task "uploads:regenerate_missing_optimized" => :environment do
|
||||
regenerate_missing_optimized
|
||||
end
|
||||
|
||||
task "uploads:regenerate_missing_optimized_all_sites" => :environment do
|
||||
RailsMultisite::ConnectionManagement.each_connection { regenerate_missing_optimized }
|
||||
if ENV["RAILS_DB"]
|
||||
regenerate_missing_optimized
|
||||
else
|
||||
RailsMultisite::ConnectionManagement.each_connection { regenerate_missing_optimized }
|
||||
end
|
||||
end
|
||||
|
||||
def regenerate_missing_optimized
|
||||
|
|
Loading…
Reference in a new issue