Premium Only Content

How to Add Live Reload to Your Rails Application
Live reload is an incredible tool for developers looking to boost their productivity. In this tutorial, I will walk you through the process of implementing live reload in your Ruby on Rails application using esbuild.
Implementing live reload can greatly streamline your development workflow, saving you valuable time and effort. By automatically refreshing your app whenever you make changes, you can instantly see the results without manually reloading the page.
To achieve this, we will leverage the power of esbuild, a cutting-edge technology for fast and efficient JavaScript bundling. By combining esbuild with Ruby on Rails, we can create a seamless live reload experience that will streamline your development process.
Timestamps:
00:00 - Intro
00:05 - Why live reload and why with Rails?
02:18 - Demo project kickoff
04:06 - Adding esbuild to an existing app
04:42 - Add node dependencies
05:27 - Create an esbuild.config.js file
06:12 - Write the new configuration
17:55 - Add live_reload.js file
19:23 - Reviewing our work
20:21 - Trying it all out
21:45 - Other solutions you could try
25:16 - Closing thoughts
💻 Read the written version:
https://webcrunch.com/posts/live-reload-rails
======
👋 I'm Andy Leverenz, a passionate product designer and developer. I love creating and sharing my knowledge through design, coding, and writing. Join me on my journey by checking out my blog, Web-Crunch (https://webcrunch.com), where I publish tutorials, articles, and the occasional vlog about design and development.
📰 Never miss an update! Click here to subscribe: https://www.youtube.com/user/webcrunch?sub_confirmation=1
💻 Read the written version:
https://webcrunch.com/posts/live-reload-rails
💎 New to Ruby on Rails? Enroll in my course HELLO RAILS:
https://hellorails.io
💻 The Blog (my source of truth): https://webcrunch.com
Additional Links:
🎨 Bring life to Rails projects with Rails UI: https://railsui.com.
👨💻 Hire me: Visit: https://railsui.com/custom
🐤 https://twitter.com/webcrunchblog.
⚙️ https://github.com/justalever.
P.S. This stuff takes a long time to make but I love to do it. To help me keep at it consider supporting me. If not monetarily, then subscribe to the channel or share it with someone!
✨ https://github.com/sponsors/justalever
☕️ https://www.buymeacoffee.com/webcrunch
-
LIVE
TheSchleppy
1 day ago $0.47 earned✨TheSchleppy✨24HR 2 YRS ON RUMBLE STREAM! RIGHT INTO RUMBLE HALO EVENT!
95 watching -
3:08:21
JakRazGaming
4 hours agoPlaying Ghost of Tsushima DIRECTOR'S CUT!! on PS5 Stream 6
10.3K2 -
29:06
Scary Mysteries
1 day agoThe Corpsewood Manor Murders: Satan, Secrets, and a Savage End
11.9K11 -
2:08:56
Lara Logan
1 day agoUNHOLY EXPERIMENTS: Justin Goodman Exposes the Evil of Animal Torture | Ep 28
14.8K29 -
LIVE
The Sufari Hub
3 hours ago🔴SUFARI AUGUST SHOWCASE 🔴W CONTENT 🔴 10 SUBS? 🔴WHAT SHALL WE DO THIS COMING MONTH?
10 watching -
3:08:40
CHiLi XDD
4 hours agoSTREET FIGHTER 6 - Rise and Grind to Master!
3.32K -
36:27
Degenerate Plays
1 day ago $0.42 earnedStatic Shock Actually Changed My Life - Batman: Arkham Asylum : Part 10
6.7K -
6:32
Members Club
1 day ago $0.49 earnedWNBA Players Demand Pay—Then Get Petty With Caitlin Clark
5.82K7 -
18:13
Bearing
1 day agoThe iDubbbz & Anisa Situation Just Got WORSE 💥 Broke, Smelly & Homeless 🤣
7.6K66 -
1:04:05
Solar Groove Muzic
1 day ago $0.39 earnedSUMMER AFRO HOUSE Good Vibes Mix 2025 (Avicii, The Weeknd, Coldplay, Diplo) - Summer Vibes
4.71K