Learnings
New Learning
About The App
Hire Me
Writing Samples
Edit Learning
Title
Body
Context: A newly added "Edit" link for learnings appeared locally but not on my deployed Render application, despite logs showing the correct commit deployed and server restarted. Resolution: I modified the Build Command in Render settings. I changed the order of asset tasks from `...; bundle exec rake assets:precompile; bundle exec rake assets:clean; ...` to `...; bundle exec rake assets:clean; bundle exec rake assets:precompile; ...`. Redeploying with `clean` before `precompile` made the link appear. Learning: The order of asset pipeline tasks in the build command matters, especially with tools like Sprockets or Propshaft. I learned that running `assets:clean` *before* `assets:precompile` ensures that stale or conflicting assets from previous builds are removed before new ones are generated. This prevents potential issues where old assets (CSS, JS) might be served by the CDN or web server, causing new code changes or UI elements not to appear as expected in the production environment.
Learned on (YYYY-MM-DD)
Tags
Add comma-separated tags. They help filter learnings later.
Back to Learnings