This week, I upgraded a little demo application for my book Deployment from Scratch from Rails 6 to Rails 6.1. Since I showcase WebSockets with ActionCable and Redis, I needed to move the ActionCable CoffeeScript from Sprockets to Webpacker.
Rails provides a smooth
assets:precompile task to prepare application assets but keeps all required gems for assets generation as a standard part of the generated Gemfile. Let’s see if we can avoid these dependencies for runtime.
This was a long time coming. 2.5+ years in the making, still unfinished, but it had to go out!
If you ever used the time to measure the program’s execution, you might want to know how to improve your results by running with a higher process priority.
How to configure Puma 5 application server for graceful restarts, and what is the difference between regular, hot, and phased restarts?