diff --git a/lib/asset_sync/storage.rb b/lib/asset_sync/storage.rb index ba3748b0..50532922 100644 --- a/lib/asset_sync/storage.rb +++ b/lib/asset_sync/storage.rb @@ -115,6 +115,16 @@ def get_remote_files # (work-around for https://github.com/fog/fog/issues/596) files = [] bucket.files.each { |f| files << f.key } + return files + get_remote_webpacker_files + end + + # HACK WARNING: Only manually tested for specific usecase. + # Use at own risk. + # Only storage.rb:118 was changed for this. + def get_remote_webpacker_files + files = [] + webpacker_prefix = connection.directories.get(self.config.fog_directory, prefix: 'packs/') + webpacker_prefix.files.each { |f| files << f.key } return files end