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
-
6:48
Ben Bankas
5 days ago $18.75 earnedBen Bankas Roasts Chinese Guy | Standup Comedy
123K21 -
19:01
Bearing
19 hours agoHasan Piker EXPOSED 🚨 You’re NOT READY For This Video 💥
105K29 -
56:32
TheCrsFamily
6 hours agoCRS Firearms Live: Let's Talk
30.5K4 -
2:54:51
SavageJayGatsby
13 hours agoSpicy Saturday: Valentine’s Special 💘
40.4K -
2:35:32
Mally_Mouse
11 hours ago🎮 Let's Play!!: Superhot VR
153K10 -
20:09
MYLUNCHBREAK CHANNEL PAGE
19 hours agoChicago's Hidden Tunnel Network
134K28 -
2:05:49
Putther
12 hours ago $10.27 earned🔴BILLY ANDERSON'S VALENTINES DAY SPECIAL!
96.2K4 -
10:08:31
Rallied
13 hours ago $5.94 earnedSolo Challenges & High Vibrations
49.6K7 -
1:19:56
MattMorseTV
14 hours ago $90.61 earned🔴Trump just DROPPED the HAMMER.🔴
181K361 -
24:21
cyphertank
1 day agoCYPHER TANK S01E03
56.6K1