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
-
3:53:43
Mally_Mouse
6 hours agoSpicy *Sunday*!! - Let's Play!
18K1 -
2:57:30
megimu32
3 hours agoOFF THE SUBJECT: Rock Band Night! Let’s Shred & Hang!
12.3K2 -
DVR
EricJohnPizzaArtist
5 days agoAwesome Sauce PIZZA ART LIVE Ep. #57: MYSTERY PIZZA NIGHT!
17K -
2:57:17
Barry Cunningham
1 day agoMUST SEE: 10 REASONS WHY IT'S TIME FOR PRESIDENT TRUMP TO DROP THE HAMMER! ( AND MORE NEWS)
77.3K86 -
1:12:41
HELMETFIRE
2 hours ago🟢GAMING WITH FIRE EP5 🟢RUMBLE TAKEOVER!🟢
926 -
49:57
Sarah Westall
6 hours agoScience behind Social Revolutions, the Media, Beatles, Aliens and more w/ Mark Brake
42.8K12 -
1:09:08
Jeff Ahern
9 hours ago $6.83 earnedThe Sunday show!
49.3K15 -
1:26:12
JTtheSG
4 hours agoLIVE Replay - Win or Lose, Gotta Keep Pushing Forward!!! [Marvel Rivals]
4.39K -
LIVE
MissesMaam
6 hours agoI Ma'am Fish💚✨
40 watching -
5:31:41
Jorba4
6 hours ago🔴Live-Jorba4- Rainbow 6 Siege w/ the TRIBE
9.23K1