Safely Removing Image Assets from Rails

29-Oct-2019 1752
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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle