Safely Removing Image Assets from Rails

Why would we want to more safely delete image assets?a clean repo is easier to jump into and maintain over timecruft that isn’t in use can be confusing over timeimage assets can slow down your test and deploy pipelineRails tests frequently need to dynamically or initialize building all assets, this is often a slow hit on a Rails test suiteDeployment needs to work with assets as well, often multiple stepsbuilding all assets rake assets:precompilecompressing asset bundleuploading assets to a CDNAll of this time adds up, assets compilation on a large legacy Rails app still adds around 40 seconds to the build time, down from 1m30s in the past. While asset preparation and deployment before cleanup and optimization of that flow and files was adding over 3 minutes to our deploy time.
Safely Removing Image Assets from Rails #ruby #rubydeveloper #rubyonrails #assets https://rubyonrails.ba/single/safely-removing-image-assets-from-rails

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles